-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (30 loc) · 983 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
module.exports = {
moduleFileExtensions: [ "js", "jsx", "json", "vue", "ts", "tsx" ],
transform: {
"^.+\\.vue$": "vue-jest",
"^.+\\.tsx?$": "ts-jest",
"^.+\\.(js|jsx)?$": "babel-jest",
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub"
},
moduleNameMapper: { "^~(.*)$": "<rootDir>/src/app/$1" },
snapshotSerializers: [ "jest-serializer-vue" ],
collectCoverage: false,
collectCoverageFrom: [
"<rootDir>/src/app/**/*.{ts,js,vue}",
"!**/(node_modules|coverage|dist|build|plugins|utils/tests)/**",
"!(tailwind.js|src/sentry.js|sentry-symbols.js|src/app/index.js)",
"!**/*.config.*",
"!**/(components|containers|screens)/**"
],
coverageReporters: [ "text" ],
testMatch: [
"**/__tests__/*.spec.(js|jsx|ts|tsx)"
],
testURL: "http://localhost/",
transformIgnorePatterns: [
"<rootDir>/node_modules/(?!(element-ui)/)"
],
setupFiles: [
"<rootDir>/src/app/utils/tests/setup.js"
]
}