ava v3.9.0 Release Notes
Release Date: 2020-06-14 // almost 4 years ago-
๐ New experiments!
Thanks to @futpib we now have an experimental
t.like()
assertion 19c4f35:In the following example, the
map
property ofvalue
must be deeply equal to that ofselector
. Howevernested.qux
is ignored, because it's not inselector
.t.like({map: new Map([['foo', 'bar']]),nested: {baz: 'thud',qux: 'quux'}}, {map: new Map([['foo', 'bar']]),nested: {baz: 'thud',}})
๐ 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 first 952a017. 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
:export default {nonSemVerExperiments: {likeAssertion: true,reverseTeardowns: true}}
Reporter changes
๐ @Michael55555 has helped us combine our reporter code into a single file b3866b6. We've also made some other tweaks and improvements baaf99a. 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 v3.8.2...v3.9.0 for all changes. Thank you @paulrobertlloyd and @Autre31415 for contributing documentation improvements.