File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
// https://github.com/facebook/jest/tree/master/packages/babel-jest
2
2
// TODO remove 'babel-core@^7.0.0-0' when babel-jest can work with '@babel/core'
3
3
4
+ const path = require ( 'path' )
5
+
4
6
module . exports = {
7
+ rootDir : path . resolve ( __dirname , '..' ) ,
5
8
verbose : true ,
6
9
moduleFileExtensions : [
7
10
'js' ,
8
11
'vue'
9
12
] ,
10
13
moduleNameMapper : {
11
- '^@/(.*)$' : '<rootDir>/../ lib/$1'
14
+ '^@/(.*)$' : '<rootDir>/lib/$1'
12
15
} ,
13
16
transform : {
14
- '^.+\\.js$' : '<rootDir>/../ node_modules/babel-jest' ,
15
- '.*\\.(vue)$' : '<rootDir>/../ node_modules/vue-jest'
17
+ '^.+\\.js$' : '<rootDir>/node_modules/babel-jest' ,
18
+ '.*\\.(vue)$' : '<rootDir>/node_modules/vue-jest'
16
19
} ,
17
20
snapshotSerializers : [
18
- '<rootDir>/../ node_modules/jest-serializer-vue'
21
+ '<rootDir>/node_modules/jest-serializer-vue'
19
22
]
20
23
}
You can’t perform that action at this time.
0 commit comments