Skip to content

Commit

Permalink
build/ add test:ci script to run tests in the ci with different config
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali(Ako) Hosseini committed Feb 8, 2022
1 parent 09c6ed3 commit 2771958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jest.config.ci.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const jestConfig = require('./jest.config');

module.exports = {
...jestConfig,
collectCoverageFrom: [],
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2771958

Please sign in to comment.