Skip to content

Commit 630494d

Browse files
committed
chore: simplify Jest test configurations in VSCode settings
* Removed unnecessary `--config` argument from test commands. * Updated labels and descriptions for clarity.
1 parent 7c606a6 commit 630494d

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.vscode/settings.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,37 @@
88
"runTaskOnFileCreation": false,
99
"label": "Test current file (node)",
1010
"command": "npm test",
11-
"checkIfArgPathExist": ["--config"],
12-
"args": [
13-
"${relativeTargetFile}",
14-
"--config=${workspaceFolder}/jest.config.node.js"
15-
]
11+
"args": ["${relativeTargetFile}"]
1612
},
1713
{
1814
"runTaskOnFileCreation": true,
1915
"label": "Watch current file (node)",
2016
"command": "npm test",
21-
"checkIfArgPathExist": ["--config"],
2217
"userInputPrompt": [
2318
[
2419
{
2520
"label": "--coverage"
2621
}
2722
]
2823
],
29-
"args": [
30-
"--watch",
31-
"${relativeTargetFile}",
32-
"--config=${workspaceFolder}/jest.config.node.js"
33-
]
24+
"args": ["--watch", "${relativeTargetFile}"]
3425
},
3526
{
3627
"terminalInstanceType": "label",
3728
"runTaskOnFileCreation": false,
3829
"label": "Test directory (node)",
3930
"command": "npm test",
4031
"shouldSwitchToFile": false,
41-
"checkIfArgPathExist": ["--config"],
42-
"args": [
43-
"${relativeFileDirname}",
44-
"--config=${workspaceFolder}/jest.config.node.js"
45-
]
32+
"args": ["${relativeFileDirname}"]
4633
}
4734
],
48-
"label": "Jest Tests",
35+
"label": "Tests",
4936
"fileSuffixType": "extend extension",
5037
"filesSuffix": "test",
5138
"directoryName": "tests",
5239
"supportedExtension": ["ts", "tsx", "js", "jsx"],
5340
"defaultLocationForFiles": "project root",
54-
"description": "Jest Tests Creator"
41+
"description": "Tests Creator"
5542
}
5643
]
5744
}

0 commit comments

Comments
 (0)