mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
864800b035
The extension version used throughout the wallet is now normalized to a SemVer-compliant version that matches the version used in `package.json`. We use this version for display on the "About" page, and we attach it to all error reports and metric events, so it's important that we format it consistently so that we can correlate events on the same version across different browsers. This normalization step is necessary because Firefox and Chrome both have different requirements for the extension version, and neither is SemVer-compliant.
27 lines
794 B
JavaScript
27 lines
794 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',
|
|
'<rootDir>/app/scripts/platforms/*.test.js',
|
|
],
|
|
testTimeout: 2500,
|
|
};
|