generated from bibekaryal86/app-skeleton-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
30 lines (30 loc) · 727 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
module.exports = {
verbose: true,
testEnvironment: 'jsdom',
transform: {
'^.+\\.(t|j)sx?$': 'ts-jest',
},
rootDir: '.',
roots: ['./src'],
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json', 'node'],
testRegex: '.*?(Spec?|\\.test)\\.(js?|ts?|jsx|tsx?)$',
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/'],
setupFilesAfterEnv: ['./jest.setup.js'],
reporters: [
'default',
[
'./node_modules/jest-html-reporter',
{
pageTitle: 'Jest Test Report',
includeFailureMsg: true,
includeConsoleLog: true,
outputPath: './jest-html-report.html',
},
],
],
globals: {
'ts-jest': {
diagnostics: false,
},
},
}