forked from Ocelot-Social-Community/Ocelot-Social
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
41 lines (41 loc) · 1.13 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
34
35
36
37
38
39
40
41
module.exports = {
verbose: true,
collectCoverage: true,
collectCoverageFrom: [
'**/*.{js,vue}',
'!**/?(*.)+(spec|test|story).js?(x)',
'!**/node_modules/**',
'!**/.nuxt/**',
'!**/storybook/**',
'!**/coverage/**',
'!**/config/**',
'!**/maintenance/**',
'!**/plugins/**',
'!**/.eslintrc.js',
'!**/.prettierrc.js',
'!**/nuxt.config.js',
],
coverageThreshold: {
global: {
lines: 83,
},
},
coverageProvider: 'v8',
setupFiles: ['<rootDir>/test/registerContext.js', '<rootDir>/test/testSetup.js'],
transform: {
'.*\\.(vue)$': '@vue/vue2-jest',
'^.+\\.js$': 'babel-jest',
},
testMatch: ['**/?(*.)+(spec|test).js?(x)'],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
moduleNameMapper: {
'\\.(svg)$': '<rootDir>/test/fileMock.js',
'\\.(scss|css|less)$': 'identity-obj-proxy',
'@mapbox/mapbox-gl-geocoder': 'identity-obj-proxy',
'vue2-datepicker/locale/undefined': 'vue2-datepicker/locale/en',
'^@/(.*)$': '<rootDir>/src/$1',
'^~/(.*)$': '<rootDir>/$1',
},
moduleFileExtensions: ['js', 'json', 'vue'],
testEnvironment: 'jest-environment-jsdom',
}