test: test code coverage in CI (#100)

This commit is contained in:
Nolan Lawson 2020-12-26 15:31:39 -08:00 committed by GitHub
parent 0e2513c017
commit 98b07e587c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View File

@ -31,6 +31,9 @@ jobs:
- run:
name: Unit tests
command: yarn test
- run:
name: Code coverage tests
command: yarn cover
- run:
name: Leak tests
command: yarn test:leak

View File

@ -26,5 +26,19 @@ module.exports = {
coveragePathIgnorePatterns: [
'bin/',
'test/'
]
],
coverageThreshold: {
global: {
statements: 100,
branches: 100,
functions: 100,
lines: 100
},
'./src/picker/components/Picker/Picker.svelte': {
statements: 95,
branches: 93,
functions: 95,
lines: 97
}
}
}