Skip to content

Commit 6772c8e

Browse files
committed
fix(testing): specify jest.js path, not bin (#170)
1 parent a78dd72 commit 6772c8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"build:cjs": "tsc --module commonjs --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json",
4646
"generateSchema": "yarn schema",
4747
"prepublishOnly": "yarn build && yarn generateSchema",
48-
"test": "node --experimental-vm-modules node_modules/.bin/jest",
48+
"test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js",
4949
"test:ts": "tsc --noEmit",
50-
"test:esm": "node --experimental-vm-modules node_modules/.bin/jest -c tests-modules/esm/jest.config.js tests-modules/esm/tests/*",
51-
"test:cjs": "node node_modules/.bin/jest -c tests-modules/cjs/jest.config.js tests-modules/cjs/tests/*",
50+
"test:esm": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js -c tests-modules/esm/jest.config.js tests-modules/esm/tests/*",
51+
"test:cjs": "node ./node_modules/jest/bin/jest.js -c tests-modules/cjs/jest.config.js tests-modules/cjs/tests/*",
5252
"test:modules": "yarn test:esm && yarn test:cjs",
5353
"test:build": "yarn test:modules"
5454
},

0 commit comments

Comments
 (0)