vue3-yuanma/jest.config.js

18 lines
461 B
JavaScript
Raw Normal View History

2018-09-20 03:36:56 +08:00
module.exports = {
preset: 'ts-jest',
2018-09-20 05:45:19 +08:00
globals: {
__DEV__: true,
2018-09-25 09:13:06 +08:00
__COMPAT__: false,
__JSDOM__: true
2018-09-20 05:45:19 +08:00
},
2018-09-20 03:36:56 +08:00
coverageDirectory: 'coverage',
coverageReporters: ['html', 'lcov', 'text'],
collectCoverageFrom: ['packages/*/src/**/*.ts'],
moduleFileExtensions: ['ts', 'js', 'json'],
moduleNameMapper: {
'^@vue/(.*?)$': '<rootDir>/packages/$1/src'
},
rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.(t|j)s']
}