Bump ava from 5.3.1 to 6.1.1
Bumps ava from 5.3.1 to 6.1.1.
Release notes
Sourced from ava's releases.
v6.1.1
What's Changed
- Fix 'previous failures' in watch mode always incrementing by
@novemberbornin avajs/ava#3297Full Changelog: https://github.com/avajs/ava/compare/v6.1.0...v6.1.1
v6.1.0
What's Changed
Implement
registerCompletionHandler()by@novemberbornin avajs/ava#3283AVA 6 expects test code to clean up gracefully when the tests are complete, allowing the test environment (worker thread or child process) to exit. If this does not happen, AVA will report a timeout. You can use
registerCompletionHandler()to perform any other clean up (or indeed exit the process) after AVA has completed the test execution. See the description here.Fix potential bug with watch mode when no failed test files are written by
@novemberbornin avajs/ava#3287Fix
ava/internalESM type module by@codethewebin avajs/ava#3292Full Changelog: https://github.com/avajs/ava/compare/v6.0.1...v6.1.0
v6.0.1
What's Changed
- Ensure watch mode works outside of its integration tests by
@novemberbornin avajs/ava#3273Full Changelog: https://github.com/avajs/ava/compare/v6.0.0...v6.0.1
v6.0.0
Breaking Changes
AVA now requires Node.js versions 18.18, 20.8 or 21. Versions 14 and 16 are no longer supported. #3251 #3216
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. #3260Changes to watch mode #3218:
- Watch mode can no longer be started via the
ava.config.*orpackage.jsonconfiguration.- The
ignoredByWatcherconfiguration has moved to thewatchModeobject, under theignoreChangeskey.- 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.Failed assertions now throw, meaning that any subsequent code is not executed. This also impacts the type definitions. #3246
Only native errors are now considered errors by the
t.throws()andt.throwsAsync()assertions.Object.create(https://github.com/avajs/ava/blob/HEAD/Error.prototype)is not a native error. #3229Changes to modules loaded through the
requireconfiguration #3184:
- If such modules export a default function, this function is now invoked.
- Local files are loaded through
@ava/typescriptif necessary.Improvements
Rewritten watcher
The watcher has been rewritten. It’s now built on
fs.watch()in recursive mode.
@vercel/nftis used to perform static dependency analysis, supporting ESM and CJS imports for JavaScript & TypeScript source files. This is a huge improvement over the previous runtime tracking of CJS imports, which did not support ESM.Integration with
@ava/typescripthas been improved. The watcher can now detect a change to a TypeScript source file, then wait for the corresponding build output to change before re-running tests.
... (truncated)
Commits
2e0c2b16.1.15161bf7Update dependencies15dddf3Fix external-assertions snapshot for Node.js 20.11db0fdb2Fix 'previous failures' in watch mode always incrementing735bf41Update TypeScript recipe to suggest --import flag and tsimpaae39b26.1.0c3e2c72Fix ava/internal ESM type module0a05024Implement registerCompletionHandler()cc8b839Ensure AVA exits with code 1 after an unexpected process.exit() in a test worker35f6c86Fix potential bug with watch mode when no failed test files are written- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)