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',
|
|
|
|
},
|
|
|
|
|
2024-07-18 10:44:13 +02:00
|
|
|
testEnvironment: 'node',
|
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)
|
2024-07-18 10:44:13 +02:00
|
|
|
transformIgnorePatterns: ['<rootDir>/node_modules/jest', '<rootDir>/node_modules/js-draw', 'node_modules/jsdom'],
|
2022-08-25 17:59:38 +02:00
|
|
|
|
|
|
|
slowTestThreshold: 40,
|
|
|
|
};
|