mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Add jest coverage (#10868)
* Add jest coverage This will add coverage for any tests ran in jest under the `test:coverage:jest` command, which is currently being used in CI. I set the values to the current test coverage in `ui/app/pages/swaps`. * Lint
This commit is contained in:
parent
2c47ace438
commit
b7ee97c54c
@ -1,6 +1,14 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
restoreMocks: true,
|
restoreMocks: true,
|
||||||
coverageDirectory: 'jest-coverage/',
|
coverageDirectory: 'jest-coverage/',
|
||||||
|
coverageThreshold: {
|
||||||
|
global: {
|
||||||
|
branches: 6.3,
|
||||||
|
functions: 9.43,
|
||||||
|
lines: 8.66,
|
||||||
|
statements: 8.88,
|
||||||
|
},
|
||||||
|
},
|
||||||
setupFiles: ['./test/setup.js', './test/env.js'],
|
setupFiles: ['./test/setup.js', './test/env.js'],
|
||||||
testMatch: ['**/ui/app/pages/swaps/**/?(*.)+(test).js'],
|
testMatch: ['**/ui/app/pages/swaps/**/?(*.)+(test).js'],
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user