Преглед изворни кода

chore: fix test alias for vue

Evan You пре 6 година
родитељ
комит
9cf4518936
1 измењених фајлова са 2 додато и 1 уклоњено
  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)'],