From c3c37403c214b84b63973231358e5315a40c8878 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 21 Sep 2021 10:48:32 -0400 Subject: [PATCH] test: fix module mapping for consolidate --- jest.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 443ebca1..1bfc15aa 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)'],