1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Set up Jest minimum threshold for "ui" and "shared" folders (#11922)

This commit is contained in:
Daniel 2021-09-08 19:30:41 +02:00 committed by GitHub
parent 93cdd3c159
commit 09d5f43a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'],