fix(tests): fix: Improve test stability by handling race conditions in SenderReputationMonitor and IPWarmupManager. Disable filesystem operations and external DNS lookups during tests by checking NODE_ENV, add proper cleanup of singleton instances and active timeouts to ensure consistent test environment.

This commit is contained in:
2025-05-08 10:24:50 +00:00
parent cb33dd26d0
commit 858794799b
7 changed files with 78 additions and 17 deletions

View File

@ -2,6 +2,13 @@
## Latest Changes
### Test Stability Improvements
- [x] Fix race conditions in SenderReputationMonitor tests
- [x] Disable filesystem operations during tests to prevent race conditions
- [x] Add proper cleanup of singleton instances and timeouts
- [x] Ensure all tests properly clean up shared resources
- [x] Set consistent test environment with NODE_ENV=test
### Mailgun Removal
- [x] Remove Mailgun integration from keywords in package.json and npmextra.json
- [x] Update EmailService comments to remove mentions of Mailgun