From: Evan You Date: Tue, 21 Sep 2021 14:48:32 +0000 (-0400) Subject: test: fix module mapping for consolidate X-Git-Tag: v3.2.13~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3c37403c214b84b63973231358e5315a40c8878;p=thirdparty%2Fvuejs%2Fcore.git test: fix module mapping for consolidate --- diff --git a/jest.config.js b/jest.config.js index 443ebca130..1bfc15aac7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -44,10 +44,10 @@ module.exports = { watchPathIgnorePatterns: ['/node_modules/', '/dist/', '/.git/'], moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], moduleNameMapper: { + '@vue/consolidate': '@vue/consolidate', '@vue/compat': '/packages/vue-compat/src', '^@vue/(.*?)$': '/packages/$1/src', - vue: '/packages/vue/src', - '@vue/consolidate': '@vue/consolidate' + vue: '/packages/vue/src' }, rootDir: __dirname, testMatch: ['/packages/**/__tests__/**/*spec.[jt]s?(x)'],