FIXING BUN JEST (#719)

* FIXING BUN JEST

* Update Jest configuration and add nitro-fetch mocks for improved testing
This commit is contained in:
skalthoff
2025-11-24 17:17:15 -08:00
committed by GitHub
parent 58597b07d8
commit a8564b4a90
5 changed files with 41 additions and 2 deletions

View File

@@ -2,6 +2,11 @@
module.exports = {
preset: 'react-native',
testTimeout: 10000,
// Performance optimizations for CI
maxWorkers: process.env.CI ? 2 : '50%',
cacheDirectory: '.jest-cache',
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
setupFilesAfterEnv: [
'./jest/setup/setup.ts',
@@ -13,6 +18,7 @@ module.exports = {
'./jest/setup/rnfs.ts',
'./jest/setup/rntp.ts',
'./jest/setup/sentry.ts',
'./jest/setup/nitro-fetch.ts',
'./jest/setup/nitro-image.ts',
'./jest/setup/nitro-ota.ts',
'./tamagui.config.ts',