ava
8.4.0 · 7 Nov 2026MIT575.3k / weekRepositoryHomepagenpmAtom feed
3.15.0 is the newest release of 3.x.
Release note
It's time for another AVA release
Restricting when you can update snapshots
When executing a subset of tests, through --match or or .only() or .skip(), you can no longer also update snapshots. This prevents you from accidentally deleting snapshots. Thank you @bunysae for putting this together. f72fab4
If you are skipping a test that you can't immediately fix, but you still need to update snapshots, use .failing() instead.
Support for message strings in t.timeout() calls
test('foo', t => {
t.timeout(100, 'make sure database has started');
// Write your assertions here
});t.try() does not work in hooks
t.try() has never worked in hooks, but thanks to @okyantoro it now fails properly instead of crashing. d01db61
t.snapshot() does not really work in hooks either
t.snapshot() sort of works in hooks, but we'll be removing this in AVA 4. You can opt in to this behavior by enabling the disableSnapshotsInHooks experiment. Again thank you @okyantoro d01db61.
Fixed TypeScript definition for t.like()
The experimental t.like() assertion should now work better with TypeScript.
All changes
See v3.9.0...v3.10.1 for all changes.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.