test: fix module mapping for consolidate

This commit is contained in:
Evan You 2021-09-21 10:48:32 -04:00
parent 471f66a1f6
commit c3c37403c2

View File

@ -44,10 +44,10 @@ module.exports = {
watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: {
'@vue/consolidate': '@vue/consolidate',
'@vue/compat': '<rootDir>/packages/vue-compat/src',
'^@vue/(.*?)$': '<rootDir>/packages/$1/src',
vue: '<rootDir>/packages/vue/src',
'@vue/consolidate': '@vue/consolidate'
vue: '<rootDir>/packages/vue/src'
},
rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'],