浏览代码

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)'],