-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.js
41 lines (41 loc) · 876 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
37
38
39
40
41
module.exports = {
clearMocks: true,
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
'<rootDir>/src/**/*.tsx',
'<rootDir>/src/**/*.js',
'<rootDir>/src/**/*.jsx',
],
coverageDirectory: 'coverage',
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
],
coverageProvider: 'v8',
coverageReporters: [
'text',
],
setupFiles: [
'<rootDir>/prepare.js',
],
testMatch: [
'<rootDir>/src/**/?(*.)+(spec|test).[tj]sx?',
],
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/public/',
'<rootDir>/.next/',
'<rootDir>/.out/',
],
moduleDirectories: ['<rootDir>/src', '<rootDir>/node_modules'],
moduleFileExtensions: [
'js',
'json',
'ts',
'tsx',
'jsx'
],
snapshotResolver: '<rootDir>/snapshotResolver.js',
testEnvironmentOptions: {
url: 'http://localhost',
}
};