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 = {
|
module.exports = {
|
||||||
restoreMocks: true,
|
restoreMocks: true,
|
||||||
coverageDirectory: 'jest-coverage/',
|
coverageDirectory: 'jest-coverage/',
|
||||||
collectCoverageFrom: [
|
collectCoverageFrom: ['<rootDir>/ui/**/*.js', '<rootDir>/shared/**/*.js'],
|
||||||
'<rootDir>/ui/**/swaps/**',
|
|
||||||
'<rootDir>/ui/ducks/send/**',
|
|
||||||
],
|
|
||||||
coveragePathIgnorePatterns: ['.stories.js', '.snap'],
|
coveragePathIgnorePatterns: ['.stories.js', '.snap'],
|
||||||
coverageThreshold: {
|
coverageThreshold: {
|
||||||
global: {
|
global: {
|
||||||
branches: 45.24,
|
branches: 35,
|
||||||
functions: 51.94,
|
functions: 37,
|
||||||
lines: 58.36,
|
lines: 43,
|
||||||
statements: 58.6,
|
statements: 43,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setupFiles: ['./test/setup.js', './test/env.js'],
|
setupFiles: ['./test/setup.js', './test/env.js'],
|
||||||
|
Loading…
Reference in New Issue
Block a user