Skip to content

Commit

Permalink
Add coverage to pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
geekyme committed Apr 4, 2019
1 parent 4cbc9e4 commit 2144da1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ setup:
script: npm install
test:
stage: test
script: npm test
script: npm test -- --coverage

deploy_staging:
stage: deploy
Expand Down
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,12 @@ module.exports = {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$":
"<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|scss)$": "<rootDir>/__mocks__/styleMock.js"
},
coverageThreshold: {
global: {
branches: 75,
functions: 90,
lines: 90
}
}
};

0 comments on commit 2144da1

Please sign in to comment.