Commit ea019d3
authored
fix(deps): Update dependency ava to v8 (#396)
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [ava](https://avajs.dev) ([source](https://redirect.github.com/avajs/ava)) | [`^7.0.0` → `^8.0.0`](https://renovatebot.com/diffs/npm/ava/7.0.0/8.0.1) |  |  |
---
### Release Notes
<details>
<summary>avajs/ava (ava)</summary>
### [`v8.0.1`](https://redirect.github.com/avajs/ava/releases/tag/v8.0.1)
[Compare Source](https://redirect.github.com/avajs/ava/compare/v8.0.0...v8.0.1)
#### What's Changed
This release officially adds Node.js 26 support, with thanks to [@​novemberborn](https://redirect.github.com/novemberborn) in [#​3450](https://redirect.github.com/avajs/ava/pull/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`](https://redirect.github.com/avajs/ava/releases/tag/v8.0.0)
[Compare Source](https://redirect.github.com/avajs/ava/compare/v7.0.0...v8.0.0)
#### 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:
```diff
-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](https://nodejs.org/docs/latest/api/module.html#customization-hooks) for transpilation. The object form of the `extensions` configuration is no longer supported.
If you use AVA with [@​ava/typescript](https://redirect.github.com/avajs/typescript) you must upgrade that package to v7.
#### New Features
There's two new test modifiers [courtesy of](https://redirect.github.com/avajs/ava/pull/3423) [@​sindresorhus](https://redirect.github.com/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.
```js
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`:
```js
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](https://redirect.github.com/ninper00) in [#​3415](https://redirect.github.com/avajs/ava/pull/3415)
- Reported errors when `throwsAsync`/`notThrowsAsync` are not awaited have been improved by [@​sindresorhus](https://redirect.github.com/sindresorhus) in [#​3436](https://redirect.github.com/avajs/ava/pull/3436)
#### New Contributors
- [@​ninper00](https://redirect.github.com/ninper00) made their first contribution in [#​3415](https://redirect.github.com/avajs/ava/pull/3415)
**Full Changelog**: <avajs/ava@v7.0.0...v8.0.0>
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- Between 12:00 AM and 03:59 AM, on day 1 of the month (`* 0-3 1 * *`)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://redirect.github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5NS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->1 parent 650cedc commit ea019d3
2 files changed
Lines changed: 43 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments