You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ApiDataFactory): Improve cleanup reliability in _after() method
- Add error handling to catch and log deletion failures without breaking Promise.all
- Explicitly clear created items array after successful cleanup
- Check for undefined deletePromise before adding to promises array
This should help prevent test failures where data from previous tests
accumulates, especially in CI environments where timing may differ.
The cleanup now:
1. Catches individual deletion errors to prevent Promise.all rejection
2. Logs deletion errors for debugging
3. Clears the created items tracker after all deletions complete
4. Handles cases where _requestDelete returns undefined
0 commit comments