chore: update wallaby & vscode configs
MODIFY
.vscode/launch.json
.vscode/launch.json
"internalConsoleOptions": "openOnSessionStart",
"name": "Test - Current File",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
- "runtimeArgs": ["-r", "@babel/register"],
+ "runtimeArgs": ["--require", "@babel/register"],
"request": "launch",
- "skipFiles": ["<node_internals>/**"],
+ "skipFiles": ["<node_internals>/**", "**/node_modules/mocha/**"],
"type": "pwa-node",
"sourceMaps": true,
"cwd": "${workspaceFolder}",
"outfiles": [],
"env": {
- "NODE_ENV": "test"
- }
- },
- {
- "name": "Debug",
- "type": "node",
- "request": "launch",
- "cwd": "${workspaceFolder}",
- "console": "integratedTerminal",
- "args": ["."]
+ "NODE_ENV": "test",
+ "BABEL_ENV": "test"
},
- {
- "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"
- ]
+ "autoAttachChildProcesses": true,
}
]
}

MODIFY
.vscode/tasks.json
.vscode/tasks.json
"tasks": [
{
"type": "npm",
- "script": "build",
+ "script": "dev",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
- "label": "npm: build",
- "detail": "lerna exec gulp transpile"
+ "label": "npm: dev",
+ "detail": "lerna exec --parallel gulp dev",
+ "isBackground": true,
},
{
"type": "shell",
"label": "transpile: @appium/base-driver",
"problemMatcher": []
},
- {
- "type": "shell",
- "command": "node_modules/.bin/mocha",
- "args": [
- "--bail",
- "-r",
- "@babel/register",
- "-t",
- "20s",
- "packages/appium/test/*e2e-specs.js"
- ],
- "label": "appium: E2E",
- "problemMatcher": []
- },
{
"type": "npm",
- "script": "dev",
+ "script": "test:e2e:appium",
"problemMatcher": [],
- "isBackground": true,
- "label": "npm: dev",
- "detail": "lerna exec --parallel gulp dev"
+ "label": "npm: test:e2e:appium",
+ "detail": "e2e tests: appium"
}
]
}

MODIFY
.wallaby.js
.wallaby.js
@@ -17,6 +17,7 @@ module.exports = (wallaby) => {
'!./packages/*/node_modules/**',
'!./packages/*/gulpfile.js',
'./packages/*/test/**/fixtures/**/*',
+ './packages/*/test/**/mocks.js',
// below this are fixtures
{
binary: true,

chore: update wallaby & vscode configs