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', '^bin/(.*)$': '/bin/$1', '^helpers/(.*)$': '/src/helpers/$1', '^api/(.*)$': '/src/api/$1', '^templates/(.*)$': '/src/templates/$1', '^test/(.*)$': '/test/$1', '../../package.json': '/package.json' }, transform: { 'templates[\\\\/](tauri|mutation-observer).js': './test/jest/raw-loader-transformer.js', 'api[\\\\/]tauri.bundle.umd.js': './test/jest/raw-loader-transformer.js', '\\.(js|ts)$': 'babel-jest' } }