avajs/ava
### [`v3.10.0`](https://togithub.com/avajs/ava/releases/v3.10.0)
[Compare Source](https://togithub.com/avajs/ava/compare/v3.9.0...v3.10.0)
### It's time for another AVA release 🎉
#### Restricting when you can update snapshots
When executing a subset of tests, through `--match` or or `.only()` or `.skip()`, you can no longer _also_ update snapshots. This prevents you from accidentally deleting snapshots. Thank you [@bunysae](https://togithub.com/bunysae) for putting this together. [`f72fab4`](https://togithub.com/avajs/ava/commit/f72fab40160a413f4d7ab0208979fe3e721198ea)
If you are skipping a test that you can't immediately fix, but you still need to update snapshots, use `.failing()` instead.
#### Support for message strings in `t.timeout()` calls
Thanks to [@jonathansamines](https://togithub.com/jonathansamines) you can now provide a message string when using `t.timeout()`. This can be useful if your test depends on some other setup that may not have been completed: [`ca8ea45`](https://togithub.com/avajs/ava/commit/ca8ea45587ebefa5584d6a7aa50adf90840701cf)
```js
test('foo', t => {
t.timeout(100, 'make sure database has started');
// Write your assertions here
});
```
#### `t.try()` does not work in hooks
`t.try()` has never worked in hooks, but thanks to [@okyantoro](https://togithub.com/okyantoro) it now fails properly instead of crashing. [`d01db61`](https://togithub.com/avajs/ava/commit/d01db61ee5e9785d9f80ad5683cac21db4b96509)
#### `t.snapshot()` does not really work in hooks either
`t.snapshot()` sort of works in hooks, but we'll be removing this in AVA 4. You can opt in to this behavior by enabling the `disableSnapshotsInHooks` experiment. Again thank you [@okyantoro](https://togithub.com/okyantoro) [`d01db61`](https://togithub.com/avajs/ava/commit/d01db61ee5e9785d9f80ad5683cac21db4b96509).
#### Fixed TypeScript definition for `t.like()`
The [experimental `t.like()` assertion](https://togithub.com/avajs/ava/issues/2518) should now work better with TypeScript.
#### All changes
See for all changes.
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled due to failing status checks.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: 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 contains the following updates:
3.9.0
->3.10.0
Release Notes
avajs/ava
### [`v3.10.0`](https://togithub.com/avajs/ava/releases/v3.10.0) [Compare Source](https://togithub.com/avajs/ava/compare/v3.9.0...v3.10.0) ### It's time for another AVA release 🎉 #### Restricting when you can update snapshots When executing a subset of tests, through `--match` or or `.only()` or `.skip()`, you can no longer _also_ update snapshots. This prevents you from accidentally deleting snapshots. Thank you [@bunysae](https://togithub.com/bunysae) for putting this together. [`f72fab4`](https://togithub.com/avajs/ava/commit/f72fab40160a413f4d7ab0208979fe3e721198ea) If you are skipping a test that you can't immediately fix, but you still need to update snapshots, use `.failing()` instead. #### Support for message strings in `t.timeout()` calls Thanks to [@jonathansamines](https://togithub.com/jonathansamines) you can now provide a message string when using `t.timeout()`. This can be useful if your test depends on some other setup that may not have been completed: [`ca8ea45`](https://togithub.com/avajs/ava/commit/ca8ea45587ebefa5584d6a7aa50adf90840701cf) ```js test('foo', t => { t.timeout(100, 'make sure database has started'); // Write your assertions here }); ``` #### `t.try()` does not work in hooks `t.try()` has never worked in hooks, but thanks to [@okyantoro](https://togithub.com/okyantoro) it now fails properly instead of crashing. [`d01db61`](https://togithub.com/avajs/ava/commit/d01db61ee5e9785d9f80ad5683cac21db4b96509) #### `t.snapshot()` does not really work in hooks either `t.snapshot()` sort of works in hooks, but we'll be removing this in AVA 4. You can opt in to this behavior by enabling the `disableSnapshotsInHooks` experiment. Again thank you [@okyantoro](https://togithub.com/okyantoro) [`d01db61`](https://togithub.com/avajs/ava/commit/d01db61ee5e9785d9f80ad5683cac21db4b96509). #### Fixed TypeScript definition for `t.like()` The [experimental `t.like()` assertion](https://togithub.com/avajs/ava/issues/2518) should now work better with TypeScript. #### All changes SeeRenovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled due to failing status checks.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.