vue3-yuanma/jest.config.js

19 lines
518 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,
2019-09-04 10:25:38 +08:00
__JSDOM__: true,
__FEATURE_OPTIONS__: true,
__FEATURE_PRODUCTION_TIP__: false
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', 'tsx', 'js', 'json'],
2018-09-20 03:36:56 +08:00
moduleNameMapper: {
'^@vue/(.*?)$': '<rootDir>/packages/$1/src'
},
rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)']
2018-09-20 03:36:56 +08:00
}