module.exports = { globals: { __DEV__: true }, setupFilesAfterEnv: [ '/test/jest/jest.setup.js' ], // noStackTrace: true, // bail: true, // cache: false, // verbose: true, // watch: true, collectCoverage: false, coverageDirectory: '/test/jest/coverage', collectCoverageFrom: [ '/src/**/*.vue', '/src/**/*.js', '/src/**/*.ts', '/src/**/*.jsx' ], coverageThreshold: { global: { // branches: 50, // functions: 50, // lines: 50, // statements: 50 } }, testMatch: [ '/test/jest/__tests__/**/*.spec.js', '/test/jest/__tests__/**/*.test.js', '/src/**/__tests__/*_jest.spec.js' ], moduleFileExtensions: [ 'vue', 'js', 'jsx', 'json', 'ts', 'tsx' ], moduleNameMapper: { '^vue$': '/node_modules/vue/dist/vue.common.js', '^test-utils$': '/node_modules/@vue/test-utils/dist/vue-test-utils.js', '^quasar$': '/node_modules/quasar/dist/quasar.common.js', '^~/(.*)$': '/$1', '^@/(.*)$': '/src/$1', '^src/(.*)$': '/src/$1', '.*css$': '/test/jest/utils/stub.css', }, transform: { '.*\\.vue$': 'vue-jest', '.*\\.js$': 'babel-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', // use these if NPM is being flaky //'.*\\.vue$': '/node_modules/@quasar/quasar-app-extension-testing-unit-jest/node_modules/vue-jest', //'.*\\.js$': '/node_modules/@quasar/quasar-app-extension-testing-unit-jest/node_modules/babel-jest' }, transformIgnorePatterns: [ '/node_modules/(?!quasar/lang)' ], snapshotSerializers: [ '/node_modules/jest-serializer-vue' ] }