Skip to content

chore(deps): update dependency ava to v8 - #232

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ava-8.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/ava-8.x

Conversation

@renovate

@renovate renovate Bot commented May 9, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
ava (source) 6.4.1 → 8.2.0 age confidence

Release Notes

avajs/ava (ava)

v8.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: avajs/ava@v8.1.2...v8.2.0

v8.1.2

Compare Source

This is a patch release to fix some npm metadata.

What's Changed

Full Changelog: avajs/ava@v8.1.1...v8.1.2

v8.1.1

Compare Source

This is a patch release to fix some npm metadata. I've included a wider dependency update, but there's no changed functionality.

What's Changed

Full Changelog: avajs/ava@v8.1.0...v8.1.1

v8.1.0

Compare Source

Code block formatting for string snapshots

This release adds an overload for t.snapshot():

t.snapshot(expected, {formatAsCodeBlock}, message?)

The overload is only accepted when expected is a string. The string is stored verbatim and rendered as a fenced code block in the resulting .snap.md file. Set formatAsCodeBlock to true for a generic code block, or a non-empty language identifier string for syntax highlighting:

test('generates code', t => {
	const code = generate();
	t.snapshot(code, {formatAsCodeBlock: 'js'});
});

The resulting snapshots can only be read with AVA 8.1 or newer, but snapshots that do not contain code blocks are backwards compatible. And existing snapshots can still be read, of course.

Performance improvements

  • ~40% faster for many small test files (startup-bound)
  • ~30% faster for a single file with thousands of tests
  • ~50% faster for many files run concurrently

What's Changed

Full Changelog: avajs/ava@v8.0.2...v8.1.0

v8.0.2

Compare Source

This is a patch release to get CI green again. More goodies are coming.

What's Changed

Full Changelog: avajs/ava@v8.0.1...v8.0.2

v8.0.1

Compare Source

What's Changed

This release officially adds Node.js 26 support, with thanks to @​novemberborn in #​3450.

Per our policy, support for Node.js 25 has been removed.

Full Changelog: avajs/ava@v8.0.0...v8.0.1

v8.0.0

Compare Source

Breaking Changes

AVA now expects Node.js 22.20, 24.12 or newer.

Internally AVA is now fully ESM. This is possible now that Node.js supports loading ES modules using require() calls and simplifies AVA's types and internals.

If you use AVA from a CommonJS project you'll have to update your imports:

-const test = require('ava');
+const {default: test} = require('ava');

We expect an increasing number of projects to be ESM only. As per the above, CommonJS is still supported, but we don't expect cjs extensions to be used. The default file extensions are now js and mjs. Specify extensions: ['cjs', 'js', 'mjs'] for AVA to run test files with the cjs extension.

All test files (and those loaded through AVA's require config) are now loaded via import(). Use customization hooks for transpilation. The object form of the extensions configuration is no longer supported.

If you use AVA with @​ava/typescript you must upgrade that package to v7.

New Features

There's two new test modifiers courtesy of @​sindresorhus: test.skipIf() to skip a test based on a runtime condition. test.runIf() is the inverse: the test only runs when the condition is true.

test.skipIf(process.platform === 'win32')('not on Windows', t => {
	t.pass();
});

test.runIf(process.platform === 'linux')('Linux only', t => {
	t.pass();
});

These work with other modifiers like .serial and .failing:

test.serial.skipIf(process.platform === 'win32')('serial, not on Windows', t => {
	t.pass();
});

test.failing.skipIf(process.platform === 'win32')('expected failure, not on Windows', t => {
	t.fail();
});

Other Changes

  • Watch mode now ignores changes to *.tsbuildinfo files
  • TAP reporter is more defensive when restoring the original error name, thanks to @​ninper00 in #​3415
  • Reported errors when throwsAsync/notThrowsAsync are not awaited have been improved by @​sindresorhus in #​3436

New Contributors

Full Changelog: avajs/ava@v7.0.0...v8.0.0

v7.0.0

Compare Source

What's Changed

  • Replace strip-ansi with node:util.stripVTControlCharacters by @​fisker in #​3403
  • Remove support for Node.js 18 and 23; require 20.19 or newer, 22.20 or newer or 24,12 or newer; update dependencies including transitive glob by @​novemberborn in #​3416

Full Changelog: avajs/ava@v6.4.1...v7.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Only on Sunday and Saturday (* * * * 0,6)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from b150f00 to 4be53cd Compare May 9, 2026 16:51
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 4be53cd to 0d334f8 Compare May 20, 2026 21:30
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from 0423eeb to 9540e26 Compare June 1, 2026 21:05
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from e9eb33b to 2a08c85 Compare June 20, 2026 09:56
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 5 times, most recently from 1d812c2 to 02572ef Compare July 18, 2026 13:53
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from 5b377bd to 6a06c3c Compare July 24, 2026 15:12
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 6a06c3c to 08072e3 Compare July 30, 2026 16:06
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 08072e3 to 3c8ba3b Compare August 12, 2026 01:48
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 3c8ba3b to 9f0fbd9 Compare August 26, 2026 15:45
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from dd2acb7 to 21523c7 Compare September 3, 2026 11:26
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 21523c7 to 2e4baaa Compare September 15, 2026 10:42
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from da35821 to 5e16abd Compare October 1, 2026 00:04
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from 76b66d1 to 0611a72 Compare October 12, 2026 01:44
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 2 times, most recently from 3959655 to 1b8e5e4 Compare October 18, 2026 21:05
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 3 times, most recently from 9dd45cd to 4d61331 Compare October 27, 2026 01:28
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 4d61331 to b7d05d3 Compare October 30, 2026 21:12
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch 3 times, most recently from abc82cc to 26a8c6f Compare October 31, 2026 12:36
@renovate
renovate Bot force-pushed the renovate/ava-8.x branch from 26a8c6f to e125193 Compare October 31, 2026 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant