module.exports = { collectCoverageFrom: ['/ui/**/*.js', '/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: ['/test/setup.js', '/test/env.js'], setupFilesAfterEnv: ['/test/jest/setup.js'], testMatch: [ '/ui/**/*.test.js', '/shared/**/*.test.js', '/app/scripts/migrations/*.test.js', '/app/scripts/platforms/*.test.js', ], testTimeout: 2500, transform: { '^.+\\.[tj]sx?$': 'babel-jest', '^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx', }, };