Release notes
*Sourced from [ava's releases](https://github.com/avajs/ava/releases).*
> ## 1.0.0-rc.2
> # Release Candidate Two π·
>
> Okay then, barring any surprises, the *next* release is the 1.0. But first, there's some changes we want to get out while we work on the celebratory blog post π
>
> Please give this release a try and let us know of any problems. And as always with pre-releases, be sure to install an *exact* dependency. However unlikely, there may still be breaking changes between now and the final 1.0 release:
>
> ```console
> npm install --save-dev --save-exact ava@next
> ```
>
> Please see the release notes for the previous betas:
>
> - [beta 1](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.1)
> - [beta 2](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.2)
> - [beta 3](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.3)
> - [beta 4](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.4)
> - [beta 5](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.5)
> - [beta 6](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.6)
> - [beta 7](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.7)
> - [beta 8](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.8)
> - [release candidate 1](https://github.com/avajs/ava/releases/tag/v1.0.0-rc.1)
>
> ## Highlights
>
> ### Better snapshot files for pre-built files
>
> We've improved how AVA builds snapshot files to better support precompiled projects. Say, if you compile your TypeScript test files using `tsc` before running AVA on the build output. AVA will now use the source map to figure out the original filename and use that as the basis for the snapshot files. You'll have to manually remove snapshots generated by previous AVA versions. a130a9e3d9729e746b1ad9882ffc20de5b434750
>
> ### Set default title using parameters syntax
>
> Macros can generate a test title. Previously, AVA would call the `title` function with an empty string if no title was given in the test declaration. Now, it'll pass `undefined` instead. This means you can use default parameters. Here's an example:
>
> ```js
> import test from 'ava'
>
> const failsToParse = (t, input) => {
> t.throws(parse(input))
> }
>
> failsToParse.title = (providedTitle = 'unexpected input') => `throws when parsing ${providedTitle}`
>
> test('malformed', failsToParse, fs.readFileSync('fixtures/malformed.txt'))
> test(failsToParse, Buffer.from('}', 'utf8'))
> ```
>
> This is a breaking change if you were concatenating the provided title, under the assumption that it was an empty string. aa35f154e7cd3685f705dd07419f55af7b7440e5
>
> ### TypeScript now type-checks additional arguments used by macros
>
> ... (truncated)
Commits
- [`0e82b04`](https://github.com/avajs/ava/commit/0e82b044a1a5af35286df344275ef779431aac3a) 1.0.0-rc.2
- [`f97e277`](https://github.com/avajs/ava/commit/f97e277df70f56ee68fba8a63f736db1736b6f18) Bump dependencies
- [`6f54db8`](https://github.com/avajs/ava/commit/6f54db84199473edcd169059acbd0bebc7427f04) Type additional arguments used by macros
- [`a82fee5`](https://github.com/avajs/ava/commit/a82fee56ffefb3fd433664f236150f62c55feeb5) Documentation updates
- [`afe028a`](https://github.com/avajs/ava/commit/afe028a0a05c8b8bb0b33e12b557ff455e47355d) CI updates
- [`1ba31d8`](https://github.com/avajs/ava/commit/1ba31d8f3e1b6aa645f10ee5fc5b8c84a366c40d) Reorganize documentation
- [`5db3573`](https://github.com/avajs/ava/commit/5db3573e18cf2991726e6ad2ea0ac7558565771f) Use ts-ignore comment ([#1969](https://github-redirect.dependabot.com/avajs/ava/issues/1969))
- [`aa35f15`](https://github.com/avajs/ava/commit/aa35f154e7cd3685f705dd07419f55af7b7440e5) Pass an undefined title argument to macro-title functions
- [`37390e6`](https://github.com/avajs/ava/commit/37390e6e8fbb911a52838926910973229f7a02af) Handle esm's error "improvements"
- [`a130a9e`](https://github.com/avajs/ava/commit/a130a9e3d9729e746b1ad9882ffc20de5b434750) Use source-mapped file to build snapshots
- Additional commits viewable in [compare view](https://github.com/avajs/ava/compare/v1.0.0-beta.8...v1.0.0-rc.2)
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps ava from 1.0.0-beta.8 to 1.0.0-rc.2.
Release notes
*Sourced from [ava's releases](https://github.com/avajs/ava/releases).* > ## 1.0.0-rc.2 > # Release Candidate Two π· > > Okay then, barring any surprises, the *next* release is the 1.0. But first, there's some changes we want to get out while we work on the celebratory blog post π > > Please give this release a try and let us know of any problems. And as always with pre-releases, be sure to install an *exact* dependency. However unlikely, there may still be breaking changes between now and the final 1.0 release: > > ```console > npm install --save-dev --save-exact ava@next > ``` > > Please see the release notes for the previous betas: > > - [beta 1](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.1) > - [beta 2](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.2) > - [beta 3](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.3) > - [beta 4](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.4) > - [beta 5](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.5) > - [beta 6](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.6) > - [beta 7](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.7) > - [beta 8](https://github.com/avajs/ava/releases/tag/v1.0.0-beta.8) > - [release candidate 1](https://github.com/avajs/ava/releases/tag/v1.0.0-rc.1) > > ## Highlights > > ### Better snapshot files for pre-built files > > We've improved how AVA builds snapshot files to better support precompiled projects. Say, if you compile your TypeScript test files using `tsc` before running AVA on the build output. AVA will now use the source map to figure out the original filename and use that as the basis for the snapshot files. You'll have to manually remove snapshots generated by previous AVA versions. a130a9e3d9729e746b1ad9882ffc20de5b434750 > > ### Set default title using parameters syntax > > Macros can generate a test title. Previously, AVA would call the `title` function with an empty string if no title was given in the test declaration. Now, it'll pass `undefined` instead. This means you can use default parameters. Here's an example: > > ```js > import test from 'ava' > > const failsToParse = (t, input) => { > t.throws(parse(input)) > } > > failsToParse.title = (providedTitle = 'unexpected input') => `throws when parsing ${providedTitle}` > > test('malformed', failsToParse, fs.readFileSync('fixtures/malformed.txt')) > test(failsToParse, Buffer.from('}', 'utf8')) > ``` > > This is a breaking change if you were concatenating the provided title, under the assumption that it was an empty string. aa35f154e7cd3685f705dd07419f55af7b7440e5 > > ### TypeScript now type-checks additional arguments used by macros > > ... (truncated)Commits
- [`0e82b04`](https://github.com/avajs/ava/commit/0e82b044a1a5af35286df344275ef779431aac3a) 1.0.0-rc.2 - [`f97e277`](https://github.com/avajs/ava/commit/f97e277df70f56ee68fba8a63f736db1736b6f18) Bump dependencies - [`6f54db8`](https://github.com/avajs/ava/commit/6f54db84199473edcd169059acbd0bebc7427f04) Type additional arguments used by macros - [`a82fee5`](https://github.com/avajs/ava/commit/a82fee56ffefb3fd433664f236150f62c55feeb5) Documentation updates - [`afe028a`](https://github.com/avajs/ava/commit/afe028a0a05c8b8bb0b33e12b557ff455e47355d) CI updates - [`1ba31d8`](https://github.com/avajs/ava/commit/1ba31d8f3e1b6aa645f10ee5fc5b8c84a366c40d) Reorganize documentation - [`5db3573`](https://github.com/avajs/ava/commit/5db3573e18cf2991726e6ad2ea0ac7558565771f) Use ts-ignore comment ([#1969](https://github-redirect.dependabot.com/avajs/ava/issues/1969)) - [`aa35f15`](https://github.com/avajs/ava/commit/aa35f154e7cd3685f705dd07419f55af7b7440e5) Pass an undefined title argument to macro-title functions - [`37390e6`](https://github.com/avajs/ava/commit/37390e6e8fbb911a52838926910973229f7a02af) Handle esm's error "improvements" - [`a130a9e`](https://github.com/avajs/ava/commit/a130a9e3d9729e746b1ad9882ffc20de5b434750) Use source-mapped file to build snapshots - Additional commits viewable in [compare view](https://github.com/avajs/ava/compare/v1.0.0-beta.8...v1.0.0-rc.2)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.