forked from upfrontjs/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
36 lines (36 loc) · 927 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
31
32
33
34
35
36
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
rootDir: './',
transform: {
'^.+\\.[t]sx?$': 'ts-jest'
},
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'!<rootDir>/src/index.ts'
],
cacheDirectory: '<rootDir>/tests/cache',
coverageDirectory: '<rootDir>/tests/coverage',
coverageProvider: 'babel',
coverageReporters: ['json', 'text'],
testMatch: [
'<rootDir>tests/**/*(*.)@(test).[tj]s?(x)'
],
setupFilesAfterEnv: ['<rootDir>/tests/setupTests.ts'],
errorOnDeprecated: true,
bail: true,
notify: true,
notifyMode: 'failure-change',
globals: {
window: {},
global: {}
},
extraGlobals: [
'Function',
'Array',
'String',
'Math',
'Date'
]
};