forked from Muse-AI-Generated-Art-Marketplace/Wuta-Wuta
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
31 lines (31 loc) · 755 Bytes
/
jest.config.js
File metadata and controls
31 lines (31 loc) · 755 Bytes
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
module.exports = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/src/setupTests.js'],
moduleNameMapper: {
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest',
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.(js|jsx|ts|tsx)',
'<rootDir>/src/**/?(*.)(test|spec).(js|jsx|ts|tsx)',
],
collectCoverageFrom: [
'src/**/*.(js|jsx|ts|tsx)',
'!src/**/*.d.ts',
'!src/index.js',
'!src/reportWebVitals.js',
'!src/setupTests.js',
],
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70,
},
},
testTimeout: 10000,
};