Skip to content

Commit

Permalink
Use "test-ci" on CI. Use "test-watch" to run tests locally in watch m…
Browse files Browse the repository at this point in the history
…ode.
  • Loading branch information
siarheiy committed Mar 29, 2024
1 parent 17e570e commit 26f07cb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
cd server && yarn
- name: test
run: yarn test
run: yarn test-ci

- name: eslint
run: yarn eslint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
yarn build
cd server && yarn
- name: test
run: yarn test
run: yarn test-ci

- name: eslint
run: yarn eslint
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"stylelint": "yarn --cwd uui-build lint --stylelint",
"stylelint-fix": "yarn stylelint --fix",
"test": "node uui-build/scripts/runTests.js --config=./jest.config.js",
"test-watch": "yarn test --watchAll",
"test-ci": "cross-env CI=true yarn test",
"test-report": "yarn test --collectCoverage",
"test-typecheck": "tsc --project ./tsconfig.test.json",
Expand Down
4 changes: 0 additions & 4 deletions uui-build/scripts/runTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ process.on('unhandledRejection', (err) => {

const argv = process.argv.slice(2);

if (!process.env.CI && argv.indexOf('--collectCoverage') === -1) {
argv.push('--watchAll');
}

jest.run(argv);

0 comments on commit 26f07cb

Please sign in to comment.