This repository was archived by the owner on Aug 5, 2025. It is now read-only.
Update dependency ava to v3.9.0 #183
Merged
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.7.1->3.9.0Release Notes
avajs/ava
v3.9.0Compare Source
New experiments!
Thanks to @futpib we now have an experimental
t.like()assertion19c4f35:In the following example, the
mapproperty ofvaluemust be deeply equal to that ofselector. Howevernested.quxis ignored, because it's not inselector.Read more in the
t.like()assertion documentation and let us know what you think.@yjpa7145 has contributed an experiment to reverse the order in which
t.teardown()functions are run, so that the last registered function is called first952a017. This will be the behavior in AVA 4.To enable both these experiments update your AVA configuration:
package.json:{ "ava": { "nonSemVerExperiments": { "likeAssertion": true, "reverseTeardowns": true } } }ava.config.js:Reporter changes
@Michael55555 has helped us combine our reporter code into a single file
b3866b6. We've also made some other tweaks and improvementsbaaf99a. Let us know if anything seems amiss.Improved diffs
@bunysae made it so that missing or extraneous objects in diffs are printed with extra depth concordancejs/concordance#62.
Farewell Node.js 13
Node.js 13 has reached end-of-life. Per our support statement we have removed it from our test matrix and supported version list.
All changes
See avajs/ava@v3.8.2...v3.9.0 for all changes. Thank you @paulrobertlloyd and @Autre31415 for contributing documentation improvements.
v3.8.2Compare Source
fd92b4aa5385a4v3.8.1Compare Source
Node.js 14 support
Great news, this is a feature heavy release!
First off, though, AVA now officially supports Node.js 14. Thank you @zackschuster!
2e7c76bRun tests at specific line numbers
AVA can now run tests at specific line numbers! 🎉
Given the following test file:
test.jsRunning
npx ava test.js:2for would run theunicorntest. In fact you could use any line number between1and3.This feature is only available from the command line. It won't work if you use tools like
ts-node/registeror@babel/register, and it does not currently work with@ava/babeland@ava/typescript. See #2473.Thank you @ulken for your hard work and patience to get this shipped.
1222ce9Test-specific teardown functions
Sometimes tests have side-effects you want to clean up. @ulken has implemented
t.teardown()which lets you register teardown functions within your test. They'll run once your test has finished, even if it failed:75cbc3bNode.js internal in stack traces
Thanks to @bunysae, stack traces now include Node.js internals. Previously we removed them because we wanted you to focus on your own code, but quite often they do provide context. Now they're displayed, but somewhat dimmed.
9a9351dWatch mode with the default reporter
Watch mode with the default reporter once again accepts key input. Thanks @pcdevil!
59c227dICYMI
afterEach()andafterEach.always()hooks can now determine whether the test passed. Thank you @bunysae for contributing this!8f312c0If you've ever wanted to save some files along with AVA's snapshots, you can now determine the directory path by accessing
test.meta.snapshotDirectory. Thank you @ulken!cb5f9f7All changes
See avajs/ava@v3.7.1...v3.8.1 for all changes.
v3.8.0Compare Source
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.