forked from juliomrqz/statusfy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
35 lines (33 loc) · 820 Bytes
/
jest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// https://github.com/facebook/jest/tree/master/packages/babel-jest
// TODO remove 'babel-core@^7.0.0-0' when babel-jest can work with '@babel/core'
const path = require('path')
module.exports = {
rootDir: path.resolve(__dirname),
verbose: true,
roots: [
'packages/',
],
testURL: 'http://localhost/',
moduleFileExtensions: [
'js',
'vue',
'json'
],
moduleNameMapper: {
'^@/markdown/(.*)$': '<rootDir>/packages/@statusfy/markdown/$1',
'^@/core/(.*)$': '<rootDir>/packages/@statusfy/core/$1',
'^@/common/(.*)$': '<rootDir>/packages/@statusfy/common/$1'
},
transform: {
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest'
},
snapshotSerializers: [
'jest-serializer-vue'
],
globals: {
'vue-jest': {
babelConfig: './babel.config.js'
}
}
}