Skip to content

Commit e93d0ba

Browse files
authored
chore: add NODE_OPTIONS to vscode settings by default in the repo for playwright extension (#12390)
The official playwright extension when using the debug button to run tests in debug mode doesn't pick up the `tests/test.env` file as expected. I've added the same `NODE_OPTIONS` to the vscode settings JSON for this extension which fixes an error when running e2e tests in debug mode.
1 parent cd45574 commit e93d0ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
"runtimeArgs": ["--no-deprecation"]
2525
},
2626
// Essentially disables bun test buttons
27-
"bun.test.filePattern": "bun.test.ts"
27+
"bun.test.filePattern": "bun.test.ts",
28+
"playwright.env": {
29+
"NODE_OPTIONS": "--no-deprecation --no-experimental-strip-types"
30+
}
2831
}

0 commit comments

Comments
 (0)