Skip to content

Commit df8310f

Browse files
authored
Fix mocha launch configurations (#359)
1 parent e058bb2 commit df8310f

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.vscode/launch.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "0.2.0",
3-
"configurations": [
2+
"version": "0.2.0",
3+
"configurations": [
44
{
55
"name": "Mocha: Test Current File",
66
"type": "node",
@@ -24,18 +24,14 @@
2424
"type": "node",
2525
"request": "launch",
2626
"cwd": "${workspaceRoot}",
27-
"program": "${workspaceRoot}/node_modules/.bin/_mocha",
27+
"program": "${workspaceRoot}/node_modules/.bin/ts-mocha",
2828
"args": [
29-
"--recursive",
30-
"--no-timeouts",
31-
"--exclude",
32-
"**/views/view.spec.ts",
33-
"--config",
34-
"${workspaceRoot}/configs/.mocharc.json"
29+
"-p",
30+
"tsconfig.json",
31+
"**/src/**/*.spec.ts",
3532
],
36-
"console": "integratedTerminal",
3733
"env": {
38-
"TS_NODE_PROJECT": "${workspaceRoot}/tsconfig.json"
34+
"NODE_ENV": "test"
3935
},
4036
"sourceMaps": true,
4137
"smartStep": true,
@@ -62,5 +58,5 @@
6258
"${workspaceFolder}/packages/sprotty-elk/lib/**/*.js"
6359
]
6460
}
65-
]
61+
]
6662
}

0 commit comments

Comments
 (0)