Skip to content

Commit

Permalink
Only collect code coverage in CI (deephaven#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon authored Aug 15, 2022
1 parent 06f1191 commit 3e07541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ We are still using node 16.x and npm 8.x. If you are [using nvm](https://github.

Note that log messages from other sources such as react prop types will still be printed since they do not go through our logger.

If you want to collect coverage locally, run `npm test -- --coverage`

- `npm run build`: Create a production build of all packages. Mainly used by CI when packaging up a production version of the app.

## Package Overview
Expand Down
2 changes: 1 addition & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ module.exports = {
'jest-watch-typeahead/testname',
'jest-watch-select-projects',
],
collectCoverage: true,
collectCoverage: process.env.CI === 'true',
collectCoverageFrom: ['./src/**/*.{js,ts,jsx,tsx}'], // This is relative to individual project root due to how Jest handles it
};

0 comments on commit 3e07541

Please sign in to comment.