[add] launch configs
This commit is contained in:
45
.vscode/launch.json
vendored
45
.vscode/launch.json
vendored
@@ -1,18 +1,31 @@
|
|||||||
{
|
{
|
||||||
// Use IntelliSense to learn about possible attributes.
|
// Use IntelliSense to learn about possible attributes.
|
||||||
// Hover to view descriptions of existing attributes.
|
// Hover to view descriptions of existing attributes.
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Program",
|
"name": "Launch Program",
|
||||||
"skipFiles": [
|
"skipFiles": ["<node_internals>/**", "cache/**", "candidates/**"],
|
||||||
"<node_internals>/**"
|
"sourceMaps": false,
|
||||||
],
|
|
||||||
"program": "${workspaceFolder}/src/index.mjs",
|
"program": "${workspaceFolder}/src/index.mjs",
|
||||||
"args": ["${workspaceFolder}/test_src/index.mjs"],
|
"args": []
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
"type": "node",
|
||||||
|
"request": "launch",
|
||||||
|
"name": "Test",
|
||||||
|
"skipFiles": ["<node_internals>/**", "cache/**", "candidates/**"],
|
||||||
|
"sourceMaps": false,
|
||||||
|
// run mocha test
|
||||||
|
"runtimeExecutable": "npx",
|
||||||
|
"runtimeArgs": [
|
||||||
|
"mocha"
|
||||||
|
],
|
||||||
|
"args": ["test"]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user