mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
e78e82205a
* Jestify migrations/ * Lint exclude migrations from mocha config, and add inclusion to jest config * Add migration tests to jest config * Exclude/ignore migration tests * Set process.env.IN_TEST to true when running tests locally
26 lines
745 B
JavaScript
26 lines
745 B
JavaScript
module.exports = {
|
|
collectCoverageFrom: ['<rootDir>/ui/**/*.js', '<rootDir>/shared/**/*.js'],
|
|
coverageDirectory: './jest-coverage/main',
|
|
coveragePathIgnorePatterns: ['.stories.js', '.snap'],
|
|
coverageReporters: ['json', 'lcov', 'text', 'clover'],
|
|
coverageThreshold: {
|
|
global: {
|
|
branches: 35,
|
|
functions: 37,
|
|
lines: 43,
|
|
statements: 43,
|
|
},
|
|
},
|
|
// TODO: enable resetMocks
|
|
// resetMocks: true,
|
|
restoreMocks: true,
|
|
setupFiles: ['<rootDir>/test/setup.js', '<rootDir>/test/env.js'],
|
|
setupFilesAfterEnv: ['<rootDir>/test/jest/setup.js'],
|
|
testMatch: [
|
|
'<rootDir>/ui/**/*.test.js',
|
|
'<rootDir>/shared/**/*.test.js',
|
|
'<rootDir>/app/scripts/migrations/*.test.js',
|
|
],
|
|
testTimeout: 2500,
|
|
};
|