pyright/.vscode/launch.json
Heejae Chang 6c1238aee2 added lanuch setting to run tests from repo root (#114)
* allow tests to be run from repo root

* remove comments

* reformated using json default formatter

* delete ones in server folder. no longer needed. from now on, open vscode from root folder to run tests
2020-02-24 17:34:42 -08:00

103 lines
3.4 KiB
JSON

{
"version": "0.2.0",
"configurations": [
{
"name": "Pyright CLI",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/index.debug.js",
"protocol": "inspector",
"cwd": "${workspaceRoot}",
"preLaunchTask": "npm: build:serverDebug",
"args": [
"-p",
"${workspaceRoot}/../brain",
"--stats"
],
"internalConsoleOptions": "openOnSessionStart",
"outFiles": [
"${workspaceRoot}/client/server/**/*.js"
]
},
{
"name": "Pyright Tests",
"type": "node",
"request": "launch",
"args": [
"--config",
"${workspaceRoot}/server/jest.config.js",
"-runInBand"
],
"cwd": "${workspaceRoot}/server",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
},
{
"name": "Pyright Language Client",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${workspaceRoot}/client/out/src/extension.js",
"preLaunchTask": "npm: build:clientServerDebug",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/client"
],
"stopOnEntry": false,
"smartStep": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/server/out/**/*.js"
]
},
{
"name": "Pyright Language Server",
"type": "node",
"request": "attach",
"protocol": "inspector",
"port": 6600,
"smartStep": true,
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/server/out/**/*.js"
]
},
{
"name": "Pyright jest current file",
"type": "node",
"request": "launch",
"args": [
"${fileBasenameNoExtension}",
"--config",
"${workspaceRoot}/server/jest.config.js"
],
"cwd": "${workspaceRoot}/server",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest",
"windows": {
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
}
},
{
"name": "Pyright fourslash current file",
"type": "node",
"request": "launch",
"args": [
"fourSlashRunner.test.ts",
"-t ${fileBasenameNoExtension}",
"--config",
"${workspaceRoot}/server/jest.config.js"
],
"cwd": "${workspaceRoot}/server",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest",
"windows": {
"program": "${workspaceFolder}/server/node_modules/jest/bin/jest"
}
}
]
}