-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjest.config.js
More file actions
35 lines (33 loc) · 1 KB
/
jest.config.js
File metadata and controls
35 lines (33 loc) · 1 KB
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
/**
* For a detailed explanation regarding each configuration property, visit:
* https://jestjs.io/docs/configuration
*/
/** @type {import('jest').Config} */
const config = {
// automock: true,
bail: 1,
clearMocks: true,
collectCoverage: true,
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: ['/node_modules/'],
coverageProvider: 'v8',
coverageReporters: ['text', 'text-summary'],
// globals: {},
passWithNoTests: true,
reporters: ['default', ['github-actions', {silent: false}], 'summary'],
resetMocks: true,
resetModules: true,
// setupFilesAfterEnv: [],
silent: true,
transform: {},
verbose: true,
moduleNameMapper: {
// Map mocks for different directories
'^@mocks/(.+)/(.*)$': '<rootDir>/test/$1/__mocks__/$2',
'^@mocks/(.*)$': '<rootDir>/test/__mocks__/$1',
// Map fixtures for different directories
'^fixtures/(.+)/(.*)$': '<rootDir>/test/$1/__fixtures__/$2',
'^fixtures/(.*)$': '<rootDir>/test/__fixtures__/$1',
},
}
export default config