Skip to content

Commit 96bec56

Browse files
committed
Fix Jest setup loading on Node 18
1 parent c459c0a commit 96bec56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"tscheck": "tsc --noEmit --pretty true",
6666
"lint": "eslint --cache . --ext js --ext ts --ext tsx",
6767
"fix": "eslint --cache --fix . --ext js --ext ts --ext tsx",
68-
"test": "jest --verbose --runInBand",
68+
"test": "NODE_OPTIONS='--loader ts-node/esm --experimental-specifier-resolution=node' jest --verbose --runInBand",
6969
"test:debug": "npx --node-arg=--inspect jest --runInBand --testTimeout=60000 --verbose --watch",
7070
"test:bundle": "node ./dist-test/esm-test.mjs && node ./dist-test/cjs-test.cjs",
7171
"example": "node --es-module-specifier-resolution=node --loader ts-node/esm"

0 commit comments

Comments
 (0)