mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Set up Jest minimum threshold for "ui" and "shared" folders (#11922)
This commit is contained in:
parent
93cdd3c159
commit
09d5f43a70
@ -1,17 +1,14 @@
|
||||
module.exports = {
|
||||
restoreMocks: true,
|
||||
coverageDirectory: 'jest-coverage/',
|
||||
collectCoverageFrom: [
|
||||
'<rootDir>/ui/**/swaps/**',
|
||||
'<rootDir>/ui/ducks/send/**',
|
||||
],
|
||||
collectCoverageFrom: ['<rootDir>/ui/**/*.js', '<rootDir>/shared/**/*.js'],
|
||||
coveragePathIgnorePatterns: ['.stories.js', '.snap'],
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 45.24,
|
||||
functions: 51.94,
|
||||
lines: 58.36,
|
||||
statements: 58.6,
|
||||
branches: 35,
|
||||
functions: 37,
|
||||
lines: 43,
|
||||
statements: 43,
|
||||
},
|
||||
},
|
||||
setupFiles: ['./test/setup.js', './test/env.js'],
|
||||
|
Loading…
Reference in New Issue
Block a user