ava
8.4.0 · 7 Nov 2026MIT575.3k / weekRepositoryHomepagenpmAtom feed
Upgrading ava From 5.3.1 to 6.0.0
1 release in betweenevery note read
- 4
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
- Breaking6.0.0
Release by release
- Breaking
AVA now requires Node.js versions 18.18, 20.8 or 21. Versions 14 and 16 are no longer supported. #3251 #3216
- Breaking
When tests finish, worker threads or child processes are no longer exited through
proces.exit(). If your test file does not exit on its own, the test run will time out. #3260 - Breaking
Failed assertions now throw, meaning that any subsequent code is not executed. This also impacts the type definitions. #3246
- Breaking
Only native errors are now considered errors by the
t.throws()andt.throwsAsync()assertions.Object.create(Error.prototype)is not a native error. #3229 - New
Internal events can now be observed (experimentally). See #3247 by @codetheweb. It’s experimental and undocumented.
- New
You can now use
t.timeout.clear()to restore a previoust.timeout(). #3221 - New
Code coverage is flushed to disk at opportune moments. #3220
- Breaking
5 other lines we could not sort, mostly version bumps
- 6.0.0
Watch mode can no longer be started via the
ava.config.*orpackage.jsonconfiguration. - 6.0.0
The
ignoredByWatcherconfiguration has moved to thewatchModeobject, under theignoreChangeskey. - 6.0.0
Watch mode now uses the built-in
fs.watch()in recursive mode. This is supported on Linux in Node.js 20 or newer, and MacOS and Windows in Node.js 18 as well. There are caveats to keep in mind. - 6.0.0
If such modules export a default function, this function is now invoked.
- 6.0.0
Local files are loaded through
@ava/typescriptif necessary.
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.