From 2771958602f5af3048c334e28868d05f9ff4f6cd Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Tue, 8 Feb 2022 19:19:08 +0330 Subject: [PATCH] build/ add test:ci script to run tests in the ci with different config --- jest.config.ci.js | 6 ++++++ package.json | 1 + 2 files changed, 7 insertions(+) create mode 100644 jest.config.ci.js diff --git a/jest.config.ci.js b/jest.config.ci.js new file mode 100644 index 000000000000..1730a95a5616 --- /dev/null +++ b/jest.config.ci.js @@ -0,0 +1,6 @@ +const jestConfig = require('./jest.config'); + +module.exports = { + ...jestConfig, + collectCoverageFrom: [], +}; diff --git a/package.json b/package.json index 9858a0471d92..9e48fbc44575 100644 --- a/package.json +++ b/package.json @@ -75,6 +75,7 @@ "test:mocha": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run test:mocha ;}; f", "test:stylelint": "stylelint \"./packages/*/src/**/*.s(a|c)ss\"", "test:jest": "jest --all --maxWorkers=2", + "test:ci": "jest --all --maxWorkers=2 --config=jest.config.ci.js --onlyChanged", "test:qa": "cd e2e_tests && jest -c ./jest.config.js --maxWorkers=2 --detectOpenHandles", "test:performance": "cd e2e_tests && jest -c ./jest.config.js --maxWorkers=2 --detectOpenHandles performance", "test:typecheck": "lerna exec --scope=@deriv/dashboard -- npm run test:typecheck",