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
feature/default_network_editable
Thomas Huang 4 years ago committed by GitHub
parent 2c47ace438
commit b7ee97c54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      jest.config.js

@ -1,6 +1,14 @@
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'],
};

Loading…
Cancel
Save