-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
23 lines (23 loc) · 800 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
module.exports = { // eslint-disable-line
preset: "@vue/cli-plugin-unit-jest/presets/typescript-and-babel",
collectCoverage: true,
moduleFileExtensions: ["js", "json", "vue", "ts"],
coverageDirectory: "<rootDir>/docs/coverage",
collectCoverageFrom: [
"src/**/*.{js,ts}",
"src/components/*.vue",
],
moduleNameMapper: {
"^vue$": "vue/dist/vue.common.js",
"^@/(.*)$": "<rootDir>/src/$1",
"\\.(css)$": "<rootDir>/tests/mocks/styleMock.js"
},
transform: {
"^.+\\.(ts|js)$": "<rootDir>/node_modules/ts-jest",
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
"^.+\\.vue$": "<rootDir>/node_modules/vue-jest"
},
transformIgnorePatterns: [
"/node_modules/(?!vuetify).+(js|jsx|css)$"
],
};