Skip to content

Commit b80cfd4

Browse files
authored
Merge pull request #4577 from github/nickrolfe/fix-launch
Fix launching/debugging of tests from VS Code
2 parents c232843 + 41ca218 commit b80cfd4

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎.vscode/launch.json‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"cwd": "${workspaceFolder}/extensions/ql-vscode",
3636
"env": {
3737
"LANG": "en-US",
38-
"TZ": "UTC"
38+
"TZ": "UTC",
39+
"NODE_OPTIONS": "--no-experimental-strip-types"
3940
},
4041
"args": [
4142
"--projects",
@@ -55,7 +56,8 @@
5556
"cwd": "${workspaceFolder}/extensions/ql-vscode",
5657
"env": {
5758
"LANG": "en-US",
58-
"TZ": "UTC"
59+
"TZ": "UTC",
60+
"NODE_OPTIONS": "--no-experimental-strip-types"
5961
},
6062
"args": [
6163
"--projects",
@@ -77,6 +79,9 @@
7779
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
7880
"showAsyncStacks": true,
7981
"cwd": "${workspaceFolder}/extensions/ql-vscode",
82+
"env": {
83+
"NODE_OPTIONS": "--no-experimental-strip-types"
84+
},
8085
"args": [
8186
"--projects",
8287
"src/view"
@@ -93,6 +98,9 @@
9398
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
9499
"showAsyncStacks": true,
95100
"cwd": "${workspaceFolder}/extensions/ql-vscode",
101+
"env": {
102+
"NODE_OPTIONS": "--no-experimental-strip-types"
103+
},
96104
"args": [
97105
"--projects",
98106
"test/vscode-tests/no-workspace"
@@ -109,6 +117,9 @@
109117
"program": "${workspaceFolder}/extensions/ql-vscode/node_modules/jest/bin/jest.js",
110118
"showAsyncStacks": true,
111119
"cwd": "${workspaceFolder}/extensions/ql-vscode",
120+
"env": {
121+
"NODE_OPTIONS": "--no-experimental-strip-types"
122+
},
112123
"args": [
113124
"--projects",
114125
"test/vscode-tests/minimal-workspace"
@@ -130,6 +141,7 @@
130141
"test/vscode-tests/cli-integration"
131142
],
132143
"env": {
144+
"NODE_OPTIONS": "--no-experimental-strip-types",
133145
// Optionally, set the version to use for the integration tests.
134146
// Use "nightly" to use the latest nightly build.
135147
// "CLI_VERSION": "2.7.0",

0 commit comments

Comments
 (0)