|
31 | 31 | "request": "launch",
|
32 | 32 | "name": "Jest Current File",
|
33 | 33 | "runtimeExecutable": "pnpm",
|
34 |
| - "program": "jest:vscode", |
| 34 | + "program": "jest", |
35 | 35 | "args": [
|
36 | 36 | "--runInBand",
|
37 | 37 | "--collectCoverage=false",
|
|
52 | 52 | "request": "launch",
|
53 | 53 | "name": "Jest All",
|
54 | 54 | "runtimeExecutable": "pnpm",
|
55 |
| - "program": "jest:vscode", |
| 55 | + "program": "jest", |
56 | 56 | "args": [
|
57 | 57 | "--runInBand",
|
58 | 58 | "--collectCoverage=false",
|
|
71 | 71 | "request": "launch",
|
72 | 72 | "name": "Jest Current Folder",
|
73 | 73 | "runtimeExecutable": "pnpm",
|
74 |
| - "program": "jest:vscode", |
| 74 | + "program": "jest", |
75 | 75 | "args": [
|
76 | 76 | "--runInBand",
|
77 | 77 | "--collectCoverage=false",
|
|
84 | 84 | },
|
85 | 85 | {
|
86 | 86 | "type": "node",
|
87 |
| - "name": "vscode-jest-tests", |
| 87 | + "name": "vscode-jest-tests.v2", |
88 | 88 | "request": "launch",
|
89 | 89 | "console": "integratedTerminal",
|
90 |
| - "internalConsoleOptions": "neverOpen", |
| 90 | + "internalConsoleOptions": "openOnSessionStart", |
91 | 91 | "cwd": "${workspaceFolder}",
|
92 |
| - "runtimeExecutable": "pnpm", |
93 |
| - "program": "jest:vscode", |
94 |
| - "args": ["--runInBand", "--watchAll=false", "--testTimeout=100000000"] |
| 92 | + "runtimeExecutable": "node", |
| 93 | + "runtimeArgs": ["--experimental-vm-modules"], |
| 94 | + "program": "node_modules/jest/bin/jest.js", |
| 95 | + "args": [ |
| 96 | + "--runInBand", |
| 97 | + "--watchAll=false", |
| 98 | + "--testTimeout=100000000", |
| 99 | + "--coverage=false", |
| 100 | + "--runTestsByPath", |
| 101 | + "${jest.testFile}", |
| 102 | + "--testNamePattern", |
| 103 | + "${jest.testNamePattern}" |
| 104 | + ], |
| 105 | + "env": { |
| 106 | + "NODE_ENV": "test", |
| 107 | + "LOG_LEVEL": "trace", |
| 108 | + "GIT_ALLOW_PROTOCOL": "file" |
| 109 | + } |
95 | 110 | }
|
96 | 111 | ]
|
97 | 112 | }
|
0 commit comments