-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjest.config.js
33 lines (33 loc) · 1.01 KB
/
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
module.exports = {
name: 'portfolio-mat-dark',
preset: '@vue/cli-plugin-unit-jest',
transform: {
'.*\\.(js)$': 'babel-jest',
},
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'^@a/(.*)$': '<rootDir>/src/assets/$1',
'^@c/(.*)$': '<rootDir>/src/components/$1',
'^@l/(.*)$': '<rootDir>/src/libs/$1',
'^@p/(.*)$': '<rootDir>/src/plugins/$1',
'^@r/(.*)$': '<rootDir>/src/router/$1',
'^@styles/(.*)$': '<rootDir>/src/styles/$1',
'^@t/(.*)$': '<rootDir>/src/templates/$1',
'^@v/(.*)$': '<rootDir>/src/views/$1',
'@state': '<rootDir>/src/plugins/state/index.js',
},
transformIgnorePatterns: ['/node_modules/(?!(vuetify)/)'],
setupFiles: ['./tests/setup.js'],
prettierPath: '<rootDir>/node_modules/prettier',
collectCoverage: false,
collectCoverageFrom: [
'**/*.{js,vue}',
'!**/node_modules/**',
'!**/dist/**',
'!**/public/**',
'!**/tests/**',
'!**/webpack/**',
'!**/.vscode/**',
'!**/.yarn/**',
],
};