1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +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 = {
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'],