|
1 |
| -/* |
| 1 | +/* |
2 | 2 |
|
3 | 3 | Copy this file into '.vscode/launch.json' or merge its
|
4 | 4 | contents into your existing configurations.
|
|
13 | 13 | */
|
14 | 14 |
|
15 | 15 | {
|
16 |
| - // Use IntelliSense to learn about possible attributes. |
17 |
| - // Hover to view descriptions of existing attributes. |
18 |
| - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
19 |
| - "version": "0.2.0", |
20 |
| - "configurations": [ |
21 |
| - { |
22 |
| - "type": "node", |
23 |
| - "request": "launch", |
24 |
| - "name": "Mocha Tests (currently opened test)", |
25 |
| - "runtimeArgs": ["--nolazy"], |
26 |
| - "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", |
27 |
| - "args": [ |
28 |
| - "-u", |
29 |
| - "bdd", |
30 |
| - "--no-timeouts", |
31 |
| - "--colors", |
32 |
| - "built/local/run.js", |
33 |
| - "-f", |
34 |
| - // You can change this to be the name of a specific test file (without the file extension) |
35 |
| - // to consistently launch the same test |
36 |
| - "${fileBasenameNoExtension}", |
37 |
| - "--skip-percent", |
38 |
| - "0" |
39 |
| - ], |
40 |
| - "env": { |
41 |
| - "NODE_ENV": "testing" |
42 |
| - }, |
43 |
| - "outFiles": [ |
44 |
| - "${workspaceFolder}/built/**/*.js", |
45 |
| - "${workspaceFolder}/built/**/*.mjs", |
46 |
| - "${workspaceFolder}/built/**/*.cjs", |
47 |
| - "!**/node_modules/**" |
48 |
| - ], |
49 |
| - "sourceMaps": true, |
50 |
| - "smartStep": true, |
51 |
| - "preLaunchTask": "npm: build:tests", |
52 |
| - "console": "integratedTerminal", |
53 |
| - "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" |
54 |
| - }, |
55 |
| - { |
56 |
| - // See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code |
57 |
| - "type": "node", |
58 |
| - "request": "attach", |
59 |
| - "name": "Attach to VS Code TS Server via Port", |
60 |
| - "processId": "${command:PickProcess}", |
61 |
| - "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" |
62 |
| - } |
63 |
| - ] |
| 16 | + // Use IntelliSense to learn about possible attributes. |
| 17 | + // Hover to view descriptions of existing attributes. |
| 18 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 19 | + "version": "0.2.0", |
| 20 | + "configurations": [ |
| 21 | + { |
| 22 | + "type": "node", |
| 23 | + "request": "launch", |
| 24 | + "name": "Mocha Tests (currently opened test)", |
| 25 | + "runtimeArgs": ["--nolazy"], |
| 26 | + "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha", |
| 27 | + "args": [ |
| 28 | + "-u", |
| 29 | + "bdd", |
| 30 | + "--no-timeouts", |
| 31 | + "--colors", |
| 32 | + "built/local/run.js", |
| 33 | + "-f", |
| 34 | + // You can change this to be the name of a specific test file (without the file extension) |
| 35 | + // to consistently launch the same test |
| 36 | + "${fileBasenameNoExtension}", |
| 37 | + "--skip-percent", |
| 38 | + "0" |
| 39 | + ], |
| 40 | + "env": { |
| 41 | + "NODE_ENV": "testing" |
| 42 | + }, |
| 43 | + "outFiles": [ |
| 44 | + "${workspaceFolder}/built/**/*.js", |
| 45 | + "${workspaceFolder}/built/**/*.mjs", |
| 46 | + "${workspaceFolder}/built/**/*.cjs", |
| 47 | + "!**/node_modules/**" |
| 48 | + ], |
| 49 | + "sourceMaps": true, |
| 50 | + "smartStep": true, |
| 51 | + "preLaunchTask": "npm: build:tests", |
| 52 | + "console": "integratedTerminal", |
| 53 | + "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" |
| 54 | + }, |
| 55 | + { |
| 56 | + // See: https://github.com/microsoft/TypeScript/wiki/Debugging-Language-Service-in-VS-Code |
| 57 | + "type": "node", |
| 58 | + "request": "attach", |
| 59 | + "name": "Attach to VS Code TS Server via Port", |
| 60 | + "processId": "${command:PickProcess}", |
| 61 | + "customDescriptionGenerator": "'__tsDebuggerDisplay' in this ? this.__tsDebuggerDisplay(defaultValue) : defaultValue" |
| 62 | + } |
| 63 | + ] |
64 | 64 | }
|
0 commit comments