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 of value must be deeply equal to that of selector. However nested.qux is ignored, because it's not in selector.

    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.