Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.10.0
->3.11.0
Release Notes
avajs/ava
v3.11.0
Compare Source
New
t.like()
assertionThanks to @futpib we now have a
t.like()
assertion19c4f35
:In the following example, the
map
property ofvalue
must be deeply equal to that ofselector
. Howevernested.qux
is ignored, because it's not inselector
.Read more in the
t.like()
assertion documentation.This assertion was previously introduced as an experiment.
VSCode 1.47 debugging improvements
You can now debug tests using the new JavaScript Debug Terminal in VSCode 1.47. We've updated our debugging recipe accordingly. Thank you @connor4312 for the documentation updates and your work on VSCode!
bc39bcc
All changes
See avajs/ava@v3.10.1...v3.11.0 for all changes.
v3.10.1
Compare Source
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 for putting this together.f72fab4
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()
callsThanks to @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
t.try()
does not work in hookst.try()
has never worked in hooks, but thanks to @okyantoro it now fails properly instead of crashing.d01db61
t.snapshot()
does not really work in hooks eithert.snapshot()
sort of works in hooks, but we'll be removing this in AVA 4. You can opt in to this behavior by enabling thedisableSnapshotsInHooks
experiment. Again thank you @okyantorod01db61
.Fixed TypeScript definition for
t.like()
The experimental
t.like()
assertion should now work better with TypeScript.All changes
See avajs/ava@v3.9.0...v3.10.1 for all changes.
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻️ 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.
This PR has been generated by WhiteSource Renovate. View repository job log here.