From 6a799b5e9a7605c037e8a0c1364fa69499813cc3 Mon Sep 17 00:00:00 2001 From: Passerino Date: Wed, 10 Nov 2021 10:44:24 +0100 Subject: [PATCH] fix(jest): make work of the npm test:watch and test:watch:windows path to env parameters got fixed --- jest.config.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jest.config.js b/jest.config.js index bc95ecd8..cd888ec7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,7 +8,7 @@ module.exports = { testEnvironment: "node", testRegex: "(/(e2e|src)/(.|\\.)*\\.(e2e|spec)\\.ts$)", moduleFileExtensions: ["ts", "tsx", "js", "json"], - coveragePathIgnorePatterns: ["/node_modules/", "/test/"], + coveragePathIgnorePatterns: ["/node_modules/", "/e2e/", "/test/"], coverageThreshold: { global: { branches: 0, diff --git a/package.json b/package.json index 7260c3ac..c3dbbf05 100644 --- a/package.json +++ b/package.json @@ -34,9 +34,9 @@ "prepare": "npm run build", "start-rpc": "run-with-testrpc -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" -p 8544 --chainId 1337 -a 20 -e 1000 -l=10000000", "ganache": "ganache-cli -m \"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat\" -p 8544 --chainId 1337 -a 20 -e 1000 -l=10000000", - "test:watch": "npm run start-rpc -- \"jest --coverage --env=jest.env.js --watchAll\"", + "test:watch": "npm run start-rpc -- \"jest --coverage --env=./jest.env.js --watchAll\"", "test": "npm run start-rpc -- \"jest --no-cache --env=./jest.env.js\"", - "test:watch:windows": "concurrently \"npm run start-rpc\" \"jest --coverage --env=jest.env.js --watchAll\"" + "test:watch:windows": "concurrently \"npm run start-rpc\" \"jest --coverage --env=./jest.env.js --watchAll\"" }, "keywords": [ "decentralized",