1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00
metamask-extension/jest.config.js
Thomas Huang b7ee97c54c
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
2021-04-09 13:10:51 -07:00

15 lines
330 B
JavaScript

module.exports = {
restoreMocks: true,
coverageDirectory: 'jest-coverage/',
coverageThreshold: {
global: {
branches: 6.3,
functions: 9.43,
lines: 8.66,
statements: 8.88,
},
},
setupFiles: ['./test/setup.js', './test/env.js'],
testMatch: ['**/ui/app/pages/swaps/**/?(*.)+(test).js'],
};