ava
8.4.0 · 7 Nov 2026MIT575.3k / weekRepositoryHomepagenpmAtom feed
0.25.0 is the newest release of 0.14.x.
In short
1 deprecated3 new2 fixed11 changed
- Deprecated
A number of assertion methods have been renamed for clarity. The old methods still exist, but have been deprecated, and will be removed in a future release (e9c6cc2843e9ee6127aebb2843eafec86cb39bfc, a7f50eb82d8dae4f9a7e70ae33ef71712a8fd69b). We have published
ava-codemodsto assist in automatically renaming these assertions in your tests.
Release note
The biggest change in this release is the deprecation of t.ok, t.notOk, t.same, and t.notSame assertions. We have published a codemod (automatic migration script) which should make switching to the new assertion methods very easy.
Also, we've added a --timeout flag that will stop test execution after a certain period of inactivity.
Highlights
- Deprecated
A number of assertion methods have been renamed for clarity. The old methods still exist, but have been deprecated, and will be removed in a future release (e9c6cc2, a7f50eb). We have published
ava-codemodsto assist in automatically renaming these assertions in your tests.t.ok()→t.truthy()t.notOk()→t.falsy()t.same()→t.deepEqual()t.notSame()→t.notDeepEqual()
Added an idle timeout option to prevent test runs from hanging indefinitely. The test run is considered timed out when no test results have been received for the specified interval. d1a3669
Published a recipe on various ways to configure Babel. bcda753
Updated Russian, Chinese, and Spanish translations. Big thanks to our translation team!
Of Note
t.deepEqual()(formerlyt.same()) no longer compares constructors. a7826cfTruncate test titles in the mini reporter. 6d5f322
Fix
t.throws()not returning error for synchronous methods. 26d2291Now throws a meaningful error if
--requiredependency is not found. c78e736Watch mode will now rerun all
.onlytests regardless of dependency graph. e57908aPrint the planned and actual assertion count when there is a plan failure. 07febb2
Workaround for Node.js bug which could kill main process. cd6961a
Mini reporter no longer flashes test titles for
skip/todotests. ecc87cbDisplay a helpful error message for invalid Babel config. febbaa2
Switch from
serialize-errortoclean-yaml-object(better compatibility withnode-tap). cd5767eRewrite
require("babel-runtime")in tests to absolute path (allows module resolution fornpm@2without modifyingNODE_PATHS). 382e50dEnsure source maps can be resolved from cached code. 592ff13
Produces a helpful failure method when users incorrectly provide an implementation method to
test.todo(). 8d6490a
All Changes
Shout-out to @kentcdodds @sotojuan @SamVerschueren @mattkrick for their awesome contributions to this release! ✨🎉
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.