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

fix jest tests to run ui tests (#11390)

This commit is contained in:
Brad Decker 2021-06-25 16:31:01 -05:00 committed by GitHub
parent 015e4a36ad
commit e488f61a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,7 @@ module.exports = {
restoreMocks: true, restoreMocks: true,
coverageDirectory: 'jest-coverage/', coverageDirectory: 'jest-coverage/',
collectCoverageFrom: ['<rootDir>/ui/**/swaps/**'], collectCoverageFrom: ['<rootDir>/ui/**/swaps/**'],
coveragePathIgnorePatterns: [ coveragePathIgnorePatterns: ['.stories.js', '.snap'],
'.stories.js',
'.snap',
'**/shared/**/?(*.)+(test).js',
],
coverageThreshold: { coverageThreshold: {
global: { global: {
branches: 32.75, branches: 32.75,
@ -17,5 +13,8 @@ module.exports = {
}, },
setupFiles: ['./test/setup.js', './test/env.js'], setupFiles: ['./test/setup.js', './test/env.js'],
setupFilesAfterEnv: ['./test/jest/setup.js'], setupFilesAfterEnv: ['./test/jest/setup.js'],
testMatch: ['ui/**/?(*.)+(test).js', '**/shared/**/?(*.)+(test).js'], testMatch: [
'<rootDir>/ui/**/?(*.)+(test).js',
'<rootDir>/shared/**/?(*.)+(test).js',
],
}; };