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.
32 lines
1.3 KiB
JSON
32 lines
1.3 KiB
JSON
{
|
|
"npm.packageManager": "pnpm",
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"editor.formatOnSaveMode": "file",
|
|
"eslint.rules.customizations": [
|
|
// Defaultt all ESLint errors to 'warn' to differentate from TypeScript's 'error' level
|
|
{ "rule": "*", "severity": "warn" },
|
|
|
|
// Silence some warnings that will get auto-fixed
|
|
{ "rule": "perfectionist/*", "severity": "off", "fixable": true },
|
|
{ "rule": "curly", "severity": "off", "fixable": true },
|
|
{ "rule": "object-shorthand", "severity": "off", "fixable": true }
|
|
],
|
|
"typescript.tsdk": "node_modules/typescript/lib",
|
|
// Load .git-blame-ignore-revs file
|
|
"gitlens.advanced.blame.customArguments": ["--ignore-revs-file", ".git-blame-ignore-revs"],
|
|
"jestrunner.jestCommand": "pnpm exec cross-env NODE_OPTIONS=\"--no-deprecation\" node 'node_modules/jest/bin/jest.js'",
|
|
"jestrunner.changeDirectoryToWorkspaceRoot": false,
|
|
"jestrunner.debugOptions": {
|
|
"runtimeArgs": ["--no-deprecation"]
|
|
},
|
|
// Essentially disables bun test buttons
|
|
"bun.test.filePattern": "bun.test.ts",
|
|
"playwright.env": {
|
|
"NODE_OPTIONS": "--no-deprecation --no-experimental-strip-types"
|
|
}
|
|
}
|