-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
34 lines (34 loc) · 1.02 KB
/
jest.config.js
File metadata and controls
34 lines (34 loc) · 1.02 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
/**
* Jest configuration for 4-Score Fitness app
* Configures testing environment for both React Native and Firebase
*/
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|react-native-vector-icons|@firebase)/)',
],
setupFilesAfterEnv: ['./jest.setup.js'],
testEnvironment: 'jsdom',
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$',
collectCoverage: true,
collectCoverageFrom: [
'android/app/src/main/kotlin/com/alkaidynamics/fourscore/**/*.kt',
'!**/node_modules/**',
'!**/android/build/**',
'!**/ios/build/**',
],
coverageThreshold: {
global: {
branches: 70,
functions: 70,
lines: 70,
statements: 70,
},
},
moduleNameMapper: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/__mocks__/fileMock.js',
'\\.(css|less)$': '<rootDir>/__mocks__/styleMock.js',
},
};