vue3-yuanma/jest.config.js
Rahul Kadyan 5c4478b00b chore(jest): ignore node_modules from watched files (#162)
`jest --watch` fails with open file limit reached:
2019-10-08 14:37:31 -04:00

21 lines
582 B
JavaScript

module.exports = {
preset: 'ts-jest',
globals: {
__DEV__: true,
__BROWSER__: false,
__JSDOM__: true,
__FEATURE_OPTIONS__: true,
__FEATURE_SUSPENSE__: true
},
coverageDirectory: 'coverage',
coverageReporters: ['html', 'lcov', 'text'],
collectCoverageFrom: ['packages/*/src/**/*.ts'],
watchPathIgnorePatterns: ['/node_modules/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: {
'^@vue/(.*?)$': '<rootDir>/packages/$1/src'
},
rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)']
}