From 6772c8e1873b37aa98c3b347902db97ddaf50889 Mon Sep 17 00:00:00 2001 From: Gadi Cohen Date: Sun, 9 May 2021 11:00:35 +0300 Subject: [PATCH] fix(testing): specify jest.js path, not bin (#170) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 65b52049..08299560 100644 --- a/package.json +++ b/package.json @@ -45,10 +45,10 @@ "build:cjs": "tsc --module commonjs --outDir dist/cjs && sed -i 's/\"type\": \"module\",/\"type:\": \"commonjs\",/' dist/cjs/package.json", "generateSchema": "yarn schema", "prepublishOnly": "yarn build && yarn generateSchema", - "test": "node --experimental-vm-modules node_modules/.bin/jest", + "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js", "test:ts": "tsc --noEmit", - "test:esm": "node --experimental-vm-modules node_modules/.bin/jest -c tests-modules/esm/jest.config.js tests-modules/esm/tests/*", - "test:cjs": "node node_modules/.bin/jest -c tests-modules/cjs/jest.config.js tests-modules/cjs/tests/*", + "test:esm": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js -c tests-modules/esm/jest.config.js tests-modules/esm/tests/*", + "test:cjs": "node ./node_modules/jest/bin/jest.js -c tests-modules/cjs/jest.config.js tests-modules/cjs/tests/*", "test:modules": "yarn test:esm && yarn test:cjs", "test:build": "yarn test:modules" },