module.exports = { globals: { __DEV__: true }, setupFilesAfterEnv: ['/test/jest/jest.setup.js'], // noStackTrace: true, // bail: true, // cache: false, // verbose: true, // watch: true, collectCoverage: true, coverageDirectory: '/test/jest/coverage', collectCoverageFrom: [ '/bin/**/*.js', '/helpers/**/*.js', '/api/**/*.js' ], coverageReporters: ['json-summary', 'text', 'lcov'], coverageThreshold: { global: { // branches: 50, // functions: 50, // lines: 50, // statements: 50 } }, testMatch: [ '/test/jest/__tests__/**/*.spec.js', '/test/jest/__tests__/**/*.test.js' ], moduleFileExtensions: ['ts', 'js', 'json'], moduleNameMapper: { '^~/(.*)$': '/$1', '^dist/(.*)$': '/dist/$1', '^bin/(.*)$': '/bin/$1', '^helpers/(.*)$': '/src/helpers/$1', '^api/(.*)$': '/src/api/$1', '^templates/(.*)$': '/src/templates/$1', '^test/(.*)$': '/test/$1', '../../package.json': '/package.json' }, transform: { '\\.toml$': 'jest-transform-toml', '\\.(js|ts)$': 'babel-jest' }, transformIgnorePatterns: ['node_modules/(?!(is-png|imagemin|p-pipe)/)'] }