Release notes
*Sourced from [ava's releases](https://github.com/avajs/ava/releases).*
> ## 1.3.1
> ## Bug fixes
>
> - We've fixed a rather embarrasing bug with `t.throws()` and `t.throwsAsync()`. If you'd set a `code` expectation to a number we never actually *checked* that the thrown error had such a code! Thanks to [@qlonik](https://github.com/qlonik) for both spotting and fixing this. 82daa5e373ef0587693927acc63ce5590e8d8eb2
> - 1.2.0 contained a regression which meant that if you [faked]() `clearTimeout()`, you'd break AVA. That's now been fixed. 40f331c27e70690e724f9ddc893fed0556058987
> - Snapshot files are now recognized as source files, so if you're using watch mode and you delete one, AVA won't rerun *all* your test files. d066f6fbc06ab2fa2d391ff373f5f09b2585b900
>
> ## New features
>
> You can now use `require()` in `ava.config.js` files to load non-ES modules. 334e15b4af06492c9aed2800a0764f245d6a908b
>
> ## All changes
>
> [`v1.2.1...v1.3.1`](https://github.com/avajs/ava/compare/v1.2.1...v1.3.1)
>
> ## Thanks
>
> Thank you [@itaisteinherz](https://github.com/itaisteinherz), [@jdalton](https://github.com/jdalton), [@kagawagao](https://github.com/kagawagao), [@KompKK](https://github.com/KompKK), [@SleeplessByte](https://github.com/SleeplessByte), [@Chrisyee22](https://github.com/Chrisyee22) and [@qlonik](https://github.com/qlonik) for helping us with this release. We couldn't have done this without you!
>
> ## Get involved
>
> We welcome new contributors. AVA is a friendly place to get started in open source. We have a [great article](https://medium.com/@vadimdemedes/making-your-first-contribution-de6576ddb190#.umxr7id07) on getting started contributing and a comprehensive [contributing guide](https://github.com/avajs/ava/blob/master/contributing.md).
Commits
- [`960f4cd`](https://github.com/avajs/ava/commit/960f4cd27097a07ecce5b9028f6c0cf321100158) 1.3.1
- [`9beb600`](https://github.com/avajs/ava/commit/9beb60071b432cea9fcda60b244a4c3c637252c9) Check whether the code expectation was given
- [`b0fadb4`](https://github.com/avajs/ava/commit/b0fadb47fb7d70f60264fe27d38cd7fd5652e741) 1.3.0
- [`9600966`](https://github.com/avajs/ava/commit/9600966ffa2452b73aa1d2a6ee9b440002700298) Bump dependencies
- [`82daa5e`](https://github.com/avajs/ava/commit/82daa5e373ef0587693927acc63ce5590e8d8eb2) Assert on expected error code, even when a number
- [`1e3b072`](https://github.com/avajs/ava/commit/1e3b072ab7aee9ce78d8faa774287902792fab90) Document `timeout` configuration
- [`d97f11d`](https://github.com/avajs/ava/commit/d97f11ddbbf824fd72165266770b9ae046e62324) Improve pronunciation examples
- [`40f331c`](https://github.com/avajs/ava/commit/40f331c27e70690e724f9ddc893fed0556058987) Fix unbound reference to clearTimeout
- [`334e15b`](https://github.com/avajs/ava/commit/334e15b4af06492c9aed2800a0764f245d6a908b) Support require() in config files
- [`5751226`](https://github.com/avajs/ava/commit/5751226ea32f160ca24bb07d2daa01f543c8ca5a) Added few tests for lib/chalk.js
- Additional commits viewable in [compare view](https://github.com/avajs/ava/compare/v1.2.1...v1.3.1)
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 squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@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.2.1 to 1.3.1.
Release notes
*Sourced from [ava's releases](https://github.com/avajs/ava/releases).* > ## 1.3.1 > ## Bug fixes > > - We've fixed a rather embarrasing bug with `t.throws()` and `t.throwsAsync()`. If you'd set a `code` expectation to a number we never actually *checked* that the thrown error had such a code! Thanks to [@qlonik](https://github.com/qlonik) for both spotting and fixing this. 82daa5e373ef0587693927acc63ce5590e8d8eb2 > - 1.2.0 contained a regression which meant that if you [faked](Commits
- [`960f4cd`](https://github.com/avajs/ava/commit/960f4cd27097a07ecce5b9028f6c0cf321100158) 1.3.1 - [`9beb600`](https://github.com/avajs/ava/commit/9beb60071b432cea9fcda60b244a4c3c637252c9) Check whether the code expectation was given - [`b0fadb4`](https://github.com/avajs/ava/commit/b0fadb47fb7d70f60264fe27d38cd7fd5652e741) 1.3.0 - [`9600966`](https://github.com/avajs/ava/commit/9600966ffa2452b73aa1d2a6ee9b440002700298) Bump dependencies - [`82daa5e`](https://github.com/avajs/ava/commit/82daa5e373ef0587693927acc63ce5590e8d8eb2) Assert on expected error code, even when a number - [`1e3b072`](https://github.com/avajs/ava/commit/1e3b072ab7aee9ce78d8faa774287902792fab90) Document `timeout` configuration - [`d97f11d`](https://github.com/avajs/ava/commit/d97f11ddbbf824fd72165266770b9ae046e62324) Improve pronunciation examples - [`40f331c`](https://github.com/avajs/ava/commit/40f331c27e70690e724f9ddc893fed0556058987) Fix unbound reference to clearTimeout - [`334e15b`](https://github.com/avajs/ava/commit/334e15b4af06492c9aed2800a0764f245d6a908b) Support require() in config files - [`5751226`](https://github.com/avajs/ava/commit/5751226ea32f160ca24bb07d2daa01f543c8ca5a) Added few tests for lib/chalk.js - Additional commits viewable in [compare view](https://github.com/avajs/ava/compare/v1.2.1...v1.3.1)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 squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@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.