module.exports = { bail: false, collectCoverageFrom: ['**/src/**/*.{ts,tsx,js,jsx}', '**/test/**/*.{ts,tsx,js,jsx}'], coverageDirectory: './coverage', coveragePathIgnorePatterns: [ 'coverage/', 'node_modules/', 'public/', 'esm/', 'lib/', 'tmp/', 'dist/', ], coverageReporters: ['lcov', 'json-summary', 'html'], coverageThreshold: { global: { branches: 0, functions: 0, lines: 0, statements: 0, }, }, globals: { __DEV__: true, caches: true, }, moduleFileExtensions: ['mock.js', 'ts', 'tsx', 'js', 'jsx', 'json', 'node'], moduleNameMapper: { '^.+\\.(ttf|eot|otf|svg|woff|woff2|mp3|png|jpg|jpeg|gif|ico)$': '/node_modules/@airbnb/config-jest/mocks/file.js', '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/__mocks__/fileMock.js', '\\.(css|less)$': 'identity-obj-proxy', }, roots: ['/packages', '/plugins'], setupFiles: [ '/node_modules/@airbnb/config-jest/setup/shims.js', '/node_modules/@airbnb/config-jest/setup/console.js', '/node_modules/@airbnb/config-jest/setup/dom.js', ], setupFilesAfterEnv: [ '/node_modules/@airbnb/config-jest/bootstrap/react.js', '/node_modules/@airbnb/config-jest/bootstrap/consumer.js', '@airbnb/config-jest/enzyme', ], testEnvironment: 'jsdom', testURL: 'http://localhost', timers: 'real', verbose: false, transformIgnorePatterns: ['node_modules/(?!(vega-lite|lodash-es))'], testPathIgnorePatterns: ['packages/generator-superset/generators'], projects: [ '', { displayName: 'node', rootDir: '/packages/generator-superset', testMatch: ['/test/**/?(*.)+(spec|test).{js,jsx,ts,tsx}'], testEnvironment: 'node', }, ], };