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(test): remove automatic cleanup race condition in npm test
The test was using tmp.withDir which tries to clean up the temp directory
after the callback returns. However, with AVA, the tests are only REGISTERED
in the callback - they run asynchronously AFTER the callback returns.
This caused race conditions:
- Windows: EBUSY (files still locked by npm/pnpm processes)
- Linux: ENOTEMPTY (files created by tests still exist)
Changed to tmp.dir() without automatic cleanup. Temp directories are
cleaned by the OS periodically anyway.
0 commit comments