Files
Jellify/jest.config.js
Violet Caulfield db9301f583 fix jest
2025-08-14 07:05:02 -05:00

27 lines
873 B
JavaScript

// https://docs.swmansion.com/react-native-gesture-handler/docs/guides/testing
module.exports = {
preset: 'react-native',
testTimeout: 10000,
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: [
'./jest/setup/setup.ts',
'./jest/setup/blur.ts',
'./jest/setup/carplay.ts',
'./jest/setup/device-info.js', // JS to prevent Typescript implicit any warning
'./jest/setup/reanimated.ts',
'./jest/setup/rnfs.ts',
'./jest/setup/rntp.ts',
'./jest/setup/sentry.ts',
'./jest/setup/nitro-image.ts',
'./tamagui.config.ts',
'./jest/setup/native-modules.ts',
],
extensionsToTreatAsEsm: ['.ts', '.tsx'],
transformIgnorePatterns: [
'node_modules/(?!(@)?(react-native|react-native-.*|react-navigation|jellyfin|burnt|expo|expo-.*)/)',
],
moduleNameMapper: {
'^.+\\.ttf$': '<rootDir>/jest/setup/file-mock.ts',
},
}