-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (29 loc) · 891 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
const config = {
testURL: 'http://localhost:8080/',
testMatch: ['<rootDir>/tests/**/*.{ts,tsx}'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1'
},
transform: {
'^.+\\.(js|jsx)$': 'babel-jest',
'^.+\\.(ts|tsx)$': 'ts-jest',
'^.+\\.(css|less|sass|scss|styl|aac|m4a|mp3|mp4|oga|wav|webm|gif|jpg|jpeg|png|svg|eot|otf|ttf|woff|woff2)$': 'jest-transform-stub'
},
transformIgnorePatterns: ['/node_modules/'],
snapshotResolver: '<rootDir>/snapshot.config.js',
snapshotSerializers: ['jest-serializer-vue'],
setupFilesAfterEnv: ['jest-chain', 'jest-extended'],
collectCoverage: true,
coverageReporters: ['text'],
watchPlugins: [
'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname'
],
globals: {
'ts-jest': {
babelConfig: true
}
}
}
module.exports = config