|
9 | 9 | "request": "launch", |
10 | 10 | "name": "Run unit tests", |
11 | 11 | "runtimeExecutable": "npm", |
12 | | - "runtimeArgs": ["test"], |
| 12 | + "runtimeArgs": ["run", "test:jest"], |
13 | 13 | "console": "integratedTerminal" |
14 | 14 | }, |
15 | 15 | { |
16 | 16 | "type": "node", |
17 | 17 | "request": "launch", |
18 | 18 | "name": "Run current test file", |
19 | | - "runtimeExecutable": "npx", |
20 | | - "runtimeArgs": ["jest"], |
| 19 | + "runtimeExecutable": "npm", |
| 20 | + "runtimeArgs": ["run", "test:jest", "--"], |
21 | 21 | "args": ["-i", "${relativeFile}", "--testPathIgnorePatterns"], |
22 | 22 | "console": "integratedTerminal" |
23 | 23 | }, |
|
26 | 26 | "request": "launch", |
27 | 27 | "name": "Run selected test name", |
28 | 28 | "runtimeExecutable": "npm", |
29 | | - "runtimeArgs": ["run-script", "test"], |
| 29 | + "runtimeArgs": ["run", "test:jest", "--"], |
30 | 30 | "args": [ |
31 | | - "--", |
32 | 31 | "-i", |
33 | 32 | "${relativeFile}", |
34 | 33 | "-t", |
|
41 | 40 | "type": "node", |
42 | 41 | "request": "launch", |
43 | 42 | "name": "Update current test file snapshot(s)", |
44 | | - "runtimeExecutable": "npx", |
45 | | - "runtimeArgs": ["jest"], |
| 43 | + "runtimeExecutable": "npm", |
| 44 | + "runtimeArgs": ["run", "test:jest", "--"], |
46 | 45 | "args": [ |
47 | 46 | "-i", |
48 | 47 | "${relativeFile}", |
|
55 | 54 | "type": "node", |
56 | 55 | "request": "launch", |
57 | 56 | "name": "Update selected test name snapshot(s)", |
58 | | - "runtimeExecutable": "npx", |
59 | | - "runtimeArgs": ["jest"], |
| 57 | + "runtimeExecutable": "npm", |
| 58 | + "runtimeArgs": ["run", "test:jest", "--"], |
60 | 59 | "args": [ |
61 | | - "--", |
62 | 60 | "-i", |
63 | 61 | "${relativeFile}", |
64 | 62 | "-t", |
|
0 commit comments