Skip to content

Commit 660b839

Browse files
committed
🐛 fix test:debug script
1 parent 5aa0aae commit 660b839

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/create-configs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"lint:types": "tsc --noEmit --pretty",
3535
"prepublishOnly": "npm run build",
3636
"start": "node bin/create-configs.js",
37-
"test": "NODE_OPTIONS=\"--experimental-vm-modules $NODE_OPTIONS\" npx jest",
38-
"test:debug": "NODE_OPTIONS='--inspect-brk' npm run test -- --runInBand"
37+
"test": "NODE_OPTIONS=\"--experimental-vm-modules $NODE_OPTS\" jest",
38+
"test:debug": "NODE_OPTS='--inspect-brk' npm run test -- --runInBand"
3939
},
4040
"dependencies": {
4141
"@inquirer/prompts": "^5.0.0",

packages/create-configs/src/steps/scripts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ export function _generate_test_script({
199199
const scripts: TestScripts = ((): TestScripts => {
200200
if (technologies.includes('jest')) {
201201
return {
202-
test: `NODE_OPTIONS="--experimental-vm-modules $NODE_OPTIONS" npx ${deps.d.depend('jest')}`,
203-
'test:debug': `NODE_OPTIONS='--inspect-brk' npm run test -- --runInBand`,
202+
test: `NODE_OPTIONS="--experimental-vm-modules $NODE_OPTS" ${deps.d.depend('jest')}`,
203+
'test:debug': `NODE_OPTS='--inspect-brk' npm run test -- --runInBand`,
204204
};
205205
} else if (runtime === 'nodejs') {
206206
// We must be using the node test runner then

0 commit comments

Comments
 (0)