fix: resolve CouchDB connection issues in backend tests

- Add jest.preSetup.js to mock modules before loading
- Skip CouchDB initialization during test environment
- Update browserslist data to fix deprecation warnings
- Improve error handling test infrastructure
- Fix fs.F_OK deprecation warning via dependency update

🤖 Generated with [AI Assistant]

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-11-03 12:11:10 -08:00
parent 5e872ef952
commit df245fff90
5 changed files with 255 additions and 79 deletions

View File

@@ -20,6 +20,7 @@ module.exports = {
statements: 70
}
},
setupFiles: ['<rootDir>/__tests__/jest.preSetup.js'],
setupFilesAfterEnv: ['<rootDir>/__tests__/jest.setup.js'],
testTimeout: 30000,
verbose: true