2022-08-25 17:59:38 +02:00
|
|
|
module.exports = {
|
|
|
|
preset: 'react-native',
|
2022-07-22 11:44:19 +02:00
|
|
|
|
2022-08-25 17:59:38 +02:00
|
|
|
'moduleFileExtensions': [
|
2022-07-22 11:44:19 +02:00
|
|
|
'ts',
|
|
|
|
'tsx',
|
|
|
|
'js',
|
2023-07-18 15:58:06 +02:00
|
|
|
'jsx',
|
2022-07-22 11:44:19 +02:00
|
|
|
],
|
|
|
|
|
2022-08-25 17:59:38 +02:00
|
|
|
'transform': {
|
|
|
|
'\\.(ts|tsx)$': 'ts-jest',
|
|
|
|
},
|
|
|
|
|
2023-07-29 17:33:39 +02:00
|
|
|
testEnvironment: 'jsdom',
|
2022-08-25 17:59:38 +02:00
|
|
|
testMatch: ['**/*.test.(ts|tsx)'],
|
|
|
|
|
|
|
|
testPathIgnorePatterns: ['<rootDir>/node_modules/'],
|
2023-07-18 15:58:06 +02:00
|
|
|
setupFilesAfterEnv: ['./jest.setup.js'],
|
|
|
|
|
|
|
|
// Do transform most packages in node_modules (transformations correct unrecognized
|
|
|
|
// import syntax)
|
|
|
|
transformIgnorePatterns: ['<rootDir>/node_modules/jest'],
|
2022-08-25 17:59:38 +02:00
|
|
|
|
|
|
|
slowTestThreshold: 40,
|
|
|
|
};
|