Skip to content

Commit e42b6ea

Browse files
committed
fix: add NODE_OPTIONS to test scripts for experimental VM modules
1 parent 8fb2836 commit e42b6ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"start": "echo '🟢 Starting app...' && node dist/index.js",
1313
"watch": "echo '👀 Watching for changes...' && nodemon --exec npm run dev",
1414
"test": "echo '✅ Running tests...' && NODE_OPTIONS=--experimental-vm-modules jest",
15-
"test:watch": "echo '🔍✅ Watching tests...' && jest --watch",
16-
"test:coverage": "echo '📊 Generating test coverage...' && jest --coverage",
17-
"test:verbose": "echo '🗣️ Running tests in verbose mode...' && jest --verbose",
18-
"test:debug": "echo '🐛 Debugging tests...' && node --inspect-brk ./node_modules/.bin/jest --runInBand",
19-
"test:debug:watch": "echo '🐛👀 Watching and debugging tests...' && node --inspect-brk ./node_modules/.bin/jest --watchAll",
15+
"test:watch": "echo '🔍✅ Watching tests...' && NODE_OPTIONS=--experimental-vm-modules jest --watch",
16+
"test:coverage": "echo '📊 Generating test coverage...' && NODE_OPTIONS=--experimental-vm-modules jest --coverage",
17+
"test:verbose": "echo '🗣️ Running tests in verbose mode...' && NODE_OPTIONS=--experimental-vm-modules jest --verbose",
18+
"test:debug": "echo '🐛 Debugging tests...' && NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ./node_modules/.bin/jest --runInBand",
19+
"test:debug:watch": "echo '🐛👀 Watching and debugging tests...' && NODE_OPTIONS=--experimental-vm-modules node --inspect-brk ./node_modules/.bin/jest --watchAll",
2020
"clean": "echo '🧽 Cleaning up...' && rm -rf ./node_modules ./dist && rm package-lock.json"
2121
},
2222
"keywords": [],

0 commit comments

Comments
 (0)