test: test code coverage in CI (#100)
This commit is contained in:
parent
0e2513c017
commit
98b07e587c
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue