avajs / ava

Node.js test runner that lets you develop with confidence 🚀
MIT License
20.73k stars 1.4k forks source link

Fix 'previous failures' in watch mode always incrementing #3297

Closed novemberborn closed 8 months ago

novemberborn commented 8 months ago

The counters used absolute paths for the test files, but the clearing logic used relative paths. Count using relative paths instead.

The number of previous failures is not observable to the test harness, so this does not come with test coverage.

Fixes #3295.