vue3-yuanma/jest.config.js

17 lines
440 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,
__COMPAT__: false
},
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']
}