chore(vscode): fix launch configurations
Adds a "Run Appium" launch/debug config
Fixes the "Run Current File" launch/debug config
Fixes the monorepo's root TS config to handle requiring `ts-node/register` when `mocha` bootstrapped via `node`.  _`node`_ must require `ts-node`; not `mocha`.
Closes
MODIFY
.vscode/launch.json
.vscode/launch.json
{
- "version": "0.2.0",
"configurations": [
{
- "args": ["--colors", "--timeout", "0", "${file}"],
+ "args": [
+ "--log-level=debug"
+ ],
+ "console": "integratedTerminal",
+ "cwd": "${workspaceFolder}",
+ "env": {
+ "_FORCE_LOGS": "1"
+ },
"internalConsoleOptions": "openOnSessionStart",
- "name": "Test - Current File",
- "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
- "runtimeArgs": ["--require", "@babel/register"],
+ "name": "Run Appium",
+ "program": "${workspaceFolder}/node_modules/.bin/appium",
"request": "launch",
- "skipFiles": ["<node_internals>/**", "**/node_modules/mocha/**"],
- "type": "node",
+ "skipFiles": [
+ "<node_internals>/**"
+ ],
"sourceMaps": true,
- "cwd": "${workspaceFolder}",
- "env": {
- "NODE_ENV": "test",
- "BABEL_ENV": "test"
+ "type": "node"
},
+ {
+ "args": [
+ "--colors",
+ "--no-timeout",
+ "${file}"
+ ],
"autoAttachChildProcesses": true,
+ "console": "integratedTerminal",
+ "cwd": "${workspaceFolder}",
+ "internalConsoleOptions": "openOnSessionStart",
+ "name": "Test Current File w/ Mocha",
+ "program": "${workspaceFolder}/node_modules/.bin/mocha",
+ "request": "launch",
+ "runtimeArgs": [
+ "--require",
+ "ts-node/register"
+ ],
+ "skipFiles": [
+ "<node_internals>/**",
+ "**/node_modules/mocha/**",
+ "**/node_modules/ts-node/**"
+ ],
+ "sourceMaps": true,
+ "type": "node"
},
{
+ "console": "integratedTerminal",
+ "cwd": "${workspaceFolder}",
"internalConsoleOptions": "openOnSessionStart",
- "name": "TypeDoc",
+ "name": "Typedoc",
"program": "${workspaceFolder}/node_modules/.bin/typedoc",
"request": "launch",
- "skipFiles": ["<node_internals>/**"],
- "type": "node",
+ "skipFiles": [
+ "<node_internals>/**"
+ ],
"sourceMaps": true,
- "cwd": "${workspaceFolder}",
+ "type": "node"
}
- ]
+ ],
+ "version": "0.2.0"
}

MODIFY
tsconfig.json
tsconfig.json
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node14/tsconfig.json",
+ "files": [],
"ts-node": {
"transpileOnly": true
},
- "files": [],
"compilerOptions": {
- "noErrorTruncation": true
+ "allowJs": true,
+ "allowSyntheticDefaultImports": true,
+ "resolveJsonModule": true,
+ "noEmit": true
},
"references": [
{

chore(vscode): fix launch configurations

- Adds a "Run Appium" launch/debug config
- Fixes the "Run Current File" launch/debug config
- Fixes the monorepo's root TS config to handle requiring `ts-node/register` when `mocha` bootstrapped via `node`.  _`node`_ must require `ts-node`; not `mocha`.

Closes #17895