Skip to content

Commit

Permalink
only run coverage whe nrequested
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisChabot committed Apr 21, 2021
1 parent 9f69d93 commit d6747f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: Unit tests
env:
TEST: FULL
COVERAGE: 1
run: pnpm run test:full

# Build
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const baseConfig = {
};

const fullConfig = {
collectCoverage: true,
collectCoverage: !!process.env.COVERAGE,
coverageDirectory: './coverage',
coverageThreshold: {
global: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"unpkg": "dist/umd/probe-core.es6.js",
"scripts": {
"test:full": "set TEST=FULL&& jest",
"test:coverage": "set TEST=FULL&& set COVERAGE=1&& jest",
"test:quick": "jest",
"test:watch": "jest --watch",
"test": "pnpm run test:quick",
Expand Down

0 comments on commit d6747f8

Please sign in to comment.