module.exports = { collectCoverageFrom: [ '/app/scripts/controllers/permissions/*.js', '/shared/**/*.js', '/ui/**/*.js', ], coverageDirectory: './jest-coverage/main', coveragePathIgnorePatterns: ['.stories.js', '.snap'], coverageReporters: ['html', 'text-summary'], coverageThreshold: { global: { branches: 35, functions: 37, lines: 43, statements: 43, }, './app/scripts/controllers/permissions/*.js': { branches: 100, functions: 100, lines: 100, statements: 100, }, }, // TODO: enable resetMocks // resetMocks: true, restoreMocks: true, setupFiles: ['/test/setup.js', '/test/env.js'], setupFilesAfterEnv: ['/test/jest/setup.js'], testMatch: [ '/ui/**/*.test.js', '/shared/**/*.test.js', '/app/scripts/lib/**/*.test.js', '/app/scripts/migrations/*.test.js', '/app/scripts/platforms/*.test.js', '/app/scripts/controllers/permissions/*.test.js', ], testTimeout: 2500, transform: { '^.+\\.[tj]sx?$': 'babel-jest', '^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx', }, };