|
7 | 7 | {
|
8 | 8 | "type": "node",
|
9 | 9 | "request": "launch",
|
10 |
| - "name": "Run tests", |
| 10 | + "name": "Run unit tests", |
11 | 11 | "runtimeExecutable": "npm",
|
12 |
| - "runtimeArgs": ["run-script", "test"], |
| 12 | + "runtimeArgs": ["test"], |
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": "npm", |
20 |
| - "runtimeArgs": ["run-script", "test"], |
21 |
| - "args": ["--", "-i", "${relativeFile}", "--testPathIgnorePatterns"], |
| 19 | + "runtimeExecutable": "npx", |
| 20 | + "runtimeArgs": ["jest"], |
| 21 | + "args": ["-i", "${relativeFile}", "--testPathIgnorePatterns"], |
22 | 22 | "console": "integratedTerminal"
|
23 | 23 | },
|
24 | 24 | {
|
|
41 | 41 | "type": "node",
|
42 | 42 | "request": "launch",
|
43 | 43 | "name": "Update current test file snapshot(s)",
|
44 |
| - "runtimeExecutable": "npm", |
45 |
| - "runtimeArgs": ["run-script", "test"], |
| 44 | + "runtimeExecutable": "npx", |
| 45 | + "runtimeArgs": ["jest"], |
46 | 46 | "args": [
|
47 |
| - "--", |
48 | 47 | "-i",
|
49 | 48 | "${relativeFile}",
|
50 | 49 | "--updateSnapshot",
|
|
56 | 55 | "type": "node",
|
57 | 56 | "request": "launch",
|
58 | 57 | "name": "Update selected test name snapshot(s)",
|
59 |
| - "runtimeExecutable": "npm", |
60 |
| - "runtimeArgs": ["run-script", "test"], |
| 58 | + "runtimeExecutable": "npx", |
| 59 | + "runtimeArgs": ["jest"], |
61 | 60 | "args": [
|
62 | 61 | "--",
|
63 | 62 | "-i",
|
|
0 commit comments