/* eslint comma-dangle: 0 */ module.exports = { reporters: ['default', ['jest-junit', { outputDirectory: 'reports' }]], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'], testEnvironmentOptions: { url: 'http://localhost', }, testRegex: '(test/unit.*\\.spec)\\.ts', // Some unit tests rely on data folders that look like packages. This confuses jest-hast-map // when it tries to scan for package.json files. transform: { '^.+\\.(js|jsx|ts|tsx)$': 'babel-jest', }, modulePathIgnorePatterns: [ '/test/unit/partials/mock-store/.*/package.json', '/test/functional/store/.*/package.json', '/test/unit/partials/store/.*/package.json', '/coverage', '/docs', '/debug', '/scripts', '/.circleci', '/tools', '/wiki', '/systemd', '/flow-typed', 'test/unit/partials/mock-store/.*/package.json', '/test/functional/store/.*/package.json', '/build', '/.vscode/', ], testPathIgnorePatterns: ['__snapshots__', '/build'], coveragePathIgnorePatterns: [ 'node_modules', 'fixtures', '/src/api/debug', '/test', ], coverageReporters: ['text-summary', 'lcov', 'html'], coverageThreshold: { global: { lines: 70, functions: 75, branches: 63, statements: 70, }, }, };