Ver Fonte

chore: fix test alias for vue

Evan You há 6 anos atrás
pai
commit
9cf4518936
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      jest.config.js

+ 2 - 1
jest.config.js

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