|
8 | 8 | "runTaskOnFileCreation": false, |
9 | 9 | "label": "Test current file (node)", |
10 | 10 | "command": "npm test", |
11 | | - "checkIfArgPathExist": ["--config"], |
12 | | - "args": [ |
13 | | - "${relativeTargetFile}", |
14 | | - "--config=${workspaceFolder}/jest.config.node.js" |
15 | | - ] |
| 11 | + "args": ["${relativeTargetFile}"] |
16 | 12 | }, |
17 | 13 | { |
18 | 14 | "runTaskOnFileCreation": true, |
19 | 15 | "label": "Watch current file (node)", |
20 | 16 | "command": "npm test", |
21 | | - "checkIfArgPathExist": ["--config"], |
22 | 17 | "userInputPrompt": [ |
23 | 18 | [ |
24 | 19 | { |
25 | 20 | "label": "--coverage" |
26 | 21 | } |
27 | 22 | ] |
28 | 23 | ], |
29 | | - "args": [ |
30 | | - "--watch", |
31 | | - "${relativeTargetFile}", |
32 | | - "--config=${workspaceFolder}/jest.config.node.js" |
33 | | - ] |
| 24 | + "args": ["--watch", "${relativeTargetFile}"] |
34 | 25 | }, |
35 | 26 | { |
36 | 27 | "terminalInstanceType": "label", |
37 | 28 | "runTaskOnFileCreation": false, |
38 | 29 | "label": "Test directory (node)", |
39 | 30 | "command": "npm test", |
40 | 31 | "shouldSwitchToFile": false, |
41 | | - "checkIfArgPathExist": ["--config"], |
42 | | - "args": [ |
43 | | - "${relativeFileDirname}", |
44 | | - "--config=${workspaceFolder}/jest.config.node.js" |
45 | | - ] |
| 32 | + "args": ["${relativeFileDirname}"] |
46 | 33 | } |
47 | 34 | ], |
48 | | - "label": "Jest Tests", |
| 35 | + "label": "Tests", |
49 | 36 | "fileSuffixType": "extend extension", |
50 | 37 | "filesSuffix": "test", |
51 | 38 | "directoryName": "tests", |
52 | 39 | "supportedExtension": ["ts", "tsx", "js", "jsx"], |
53 | 40 | "defaultLocationForFiles": "project root", |
54 | | - "description": "Jest Tests Creator" |
| 41 | + "description": "Tests Creator" |
55 | 42 | } |
56 | 43 | ] |
57 | 44 | } |
0 commit comments