-
Notifications
You must be signed in to change notification settings - Fork 4
/
jest.config.js
32 lines (32 loc) · 958 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
module.exports = {
preset: "@vue/cli-plugin-unit-jest",
collectCoverage: true,
coverageReporters: ["lcov"],
collectCoverageFrom: [
"src/**/*.{js,vue}",
"!src/main.js",
"!src/utils/utils.js",
"!src/documentation/process_doc.js",
"!src/store/index.js",
"!src/plugins/**",
"!src/router/routes.js",
"!views/Records/NetworkGraph.vue",
"!src/components/Records/Search/Input/AdvancedSearch/QueryBuilderComponents/index.js",
"!src/components/Records/Search/SaveSearch/StepperComponents/index.js",
],
testMatch: [
"**/**.spec.js",
"**/**/**.spec.js",
"tests/**/**.spec.js",
"tests/**/**/**.spec.js",
],
setupFiles: ["./jest-setup.js", "trace-unhandled/register"],
moduleFileExtensions: ["js", "json", "vue"],
transform: {
"^.*\\.js$": "babel-jest",
".*\\.(vue)$": "vue-jest",
},
transformIgnorePatterns: [
"node_modules/(?!vue-router|@babel|vuetify|vue2-particles)",
],
};