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:
17
changelog.md
17
changelog.md
@ -1,5 +1,22 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-05-08 - 2.8.6 - 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.
|
||||
|
||||
- Bumped version from 2.8.4 to 2.8.5 in package.json and changelog.md
|
||||
- Improved SenderReputationMonitor to skip filesystem operations and DNS record loading when NODE_ENV is set to test
|
||||
- Added cleanup of singleton instances and active timeouts in test files
|
||||
- Updated readme.plan.md with roadmap items for test stability
|
||||
|
||||
## 2025-05-08 - 2.8.5 - fix(tests): Improve test stability by fixing race conditions
|
||||
Enhance the SenderReputationMonitor tests to prevent race conditions and make tests more reliable
|
||||
|
||||
- Modified SenderReputationMonitor to detect test environment and disable filesystem operations
|
||||
- Added proper cleanup of singleton instances and timeouts between tests
|
||||
- Disabled DNS lookups during tests to prevent external dependencies
|
||||
- Set a consistent test environment using NODE_ENV=test
|
||||
- Made all tests independent of each other to prevent shared state issues
|
||||
|
||||
## 2025-05-08 - 2.8.4 - fix(mail)
|
||||
refactor(mail): Remove Mailgun references from PlatformService. Update keywords, error messages, and documentation to use MTA exclusively.
|
||||
|
||||
|
Reference in New Issue
Block a user