2019-10-14 19:31:43 +00:00
|
|
|
const lernaJson = require('./lerna.json')
|
|
|
|
|
2018-09-19 19:36:56 +00:00
|
|
|
module.exports = {
|
|
|
|
preset: 'ts-jest',
|
2018-09-19 21:45:19 +00:00
|
|
|
globals: {
|
|
|
|
__DEV__: true,
|
2019-11-04 16:24:22 +00:00
|
|
|
__TEST__: true,
|
2019-10-14 19:31:43 +00:00
|
|
|
__VERSION__: lernaJson.version,
|
2019-09-17 15:57:25 +00:00
|
|
|
__BROWSER__: false,
|
2019-10-14 05:08:00 +00:00
|
|
|
__RUNTIME_COMPILE__: true,
|
2019-09-04 02:25:38 +00:00
|
|
|
__FEATURE_OPTIONS__: true,
|
2019-09-09 20:28:32 +00:00
|
|
|
__FEATURE_SUSPENSE__: true
|
2018-09-19 21:45:19 +00:00
|
|
|
},
|
2018-09-19 19:36:56 +00:00
|
|
|
coverageDirectory: 'coverage',
|
|
|
|
coverageReporters: ['html', 'lcov', 'text'],
|
2019-10-11 02:02:20 +00:00
|
|
|
collectCoverageFrom: [
|
|
|
|
'packages/*/src/**/*.ts',
|
2019-11-04 23:41:40 +00:00
|
|
|
'!packages/template-explorer/**',
|
|
|
|
'!packages/runtime-test/src/utils/**'
|
2019-10-11 02:02:20 +00:00
|
|
|
],
|
2019-10-08 18:37:31 +00:00
|
|
|
watchPathIgnorePatterns: ['/node_modules/'],
|
2019-06-12 07:43:19 +00:00
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
2018-09-19 19:36:56 +00:00
|
|
|
moduleNameMapper: {
|
|
|
|
'^@vue/(.*?)$': '<rootDir>/packages/$1/src'
|
|
|
|
},
|
|
|
|
rootDir: __dirname,
|
2019-06-12 07:43:19 +00:00
|
|
|
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)']
|
2018-09-19 19:36:56 +00:00
|
|
|
}
|