mirror of
https://github.com/appium/appium.git
synced 2026-10-25 02:00:57 +08:00
- add `jsconfig.json` for the TS language server to understand the project - update `.wallaby.js` to transpile fixtures if necessary; run on save to reduce lag - update single-file Mocha debug launch config - add `test` env in `babel.config.json` which is used by the former - add some handy vscode tasks - add a bunch of types - remove unused `babel-eslint` (we use `@babel/eslint-parser`) - bump `ecmaVersion` in `eslint-config-appium` - remove cruft from babel configs (`shippedProposals: true` goes a long way) - enable `sinon-chai` globally in tests - add `rewiremock` for module-level mocking (sinon cannot do this itself, but they work in tandem)
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"args": ["--colors", "--timeout", "0", "${file}"],
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
"name": "Test - Current File",
|
|
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
|
|
"runtimeArgs": ["-r", "@babel/register"],
|
|
"request": "launch",
|
|
"skipFiles": ["<node_internals>/**"],
|
|
"type": "pwa-node",
|
|
"sourceMaps": true,
|
|
"cwd": "${workspaceFolder}",
|
|
"outfiles": [],
|
|
"env": {
|
|
"NODE_ENV": "test"
|
|
}
|
|
},
|
|
{
|
|
"name": "Debug",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "integratedTerminal",
|
|
"args": ["."]
|
|
},
|
|
{
|
|
"name": "Attach Debug",
|
|
"type": "node",
|
|
"request": "attach",
|
|
"cwd": "${workspaceFolder}",
|
|
"port": 9229
|
|
},
|
|
{
|
|
"name": "Test All",
|
|
"type": "node",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/node_modules/.bin/_mocha",
|
|
"args": [
|
|
"--require",
|
|
"@babel/register",
|
|
"--timeout",
|
|
"999999",
|
|
"--colors",
|
|
"${workspaceFolder}/packages/appium/test"
|
|
]
|
|
}
|
|
]
|
|
}
|