-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
43 lines (43 loc) · 872 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
36
37
38
39
40
41
42
43
module.exports = {
moduleFileExtensions: [
"js",
"jsx",
"json",
"vue",
],
transform: {
"^.+\\.vue$": "vue-jest",
".+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$": "jest-transform-stub",
"^.+\\.jsx?$": "babel-jest",
},
transformIgnorePatterns: [
"/node_modules/",
],
snapshotSerializers: [
"jest-serializer-vue",
],
testMatch: [
"<rootDir>/src/**/*.spec.(js|jsx|ts|tsx)",
],
testURL: "http://localhost/",
watchPlugins: [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
],
setupFilesAfterEnv: [
"<rootDir>/tests/setup.js",
],
collectCoverage: true,
collectCoverageFrom: [
"src/**/*.{js,vue}",
],
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
clearMocks: true,
};