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/'], watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'],
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
moduleNameMapper: { moduleNameMapper: {
'@vue/consolidate': '@vue/consolidate',
'@vue/compat': '<rootDir>/packages/vue-compat/src', '@vue/compat': '<rootDir>/packages/vue-compat/src',
'^@vue/(.*?)$': '<rootDir>/packages/$1/src', '^@vue/(.*?)$': '<rootDir>/packages/$1/src',
vue: '<rootDir>/packages/vue/src', vue: '<rootDir>/packages/vue/src'
'@vue/consolidate': '@vue/consolidate'
}, },
rootDir: __dirname, rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'], testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'],