vue3-yuanma/jest.config.js
2019-09-03 22:25:38 -04:00

19 lines
518 B
JavaScript

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