Skip to content

Commit 9ffcf9a

Browse files
committed
chore: update jest to add esm support and watch command
1 parent 726a209 commit 9ffcf9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
}
2020
},
2121
"scripts": {
22-
"test": "jest",
22+
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
23+
"test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest --watchAll",
2324
"prepare": "is-ci || husky install",
2425
"build": "npm run clean && npm run build:esm && npm run build:cjs",
2526
"build:esm": "tsc --module es6 --outDir dist/esm --moduleResolution node",
@@ -73,6 +74,7 @@
7374
"@types/jest": "^27.0.2",
7475
"@typescript-eslint/eslint-plugin": "^5.1.0",
7576
"@typescript-eslint/parser": "^5.1.0",
77+
"cross-env": "^7.0.3",
7678
"eslint": "^7.23.0",
7779
"eslint-config-xo-space": "^0.30.0",
7880
"eslint-config-xo-typescript": "^0.45.2",

0 commit comments

Comments
 (0)