test: fix module mapping for consolidate
This commit is contained in:
parent
471f66a1f6
commit
c3c37403c2
@ -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)'],
|
||||||
|
Loading…
Reference in New Issue
Block a user