Configure how AVA loads test files
Normally, AVA loads all files as CommonJS, except for mjs
files and if you've configured "type": "module"
in your package.json
.
As an experiment, you can now configure how AVA loads other file extensions. This is useful if you want to use Node.js' experimental loaders feature. Read more in our documentation. Thank you @macarie for working on this! 5c9dbb96ad0beb7521e5051390478493250ba6b0
Comparison bugfix
There was a bug in our comparison library which meant that negative-index properties on lists were not compared. This was fixed in a patch release, which will definitely be installed when you install AVA 3.12. Your tests may have been passing, even though they should have been failing. They'll fail now. Snapshots may also be different, causing tests to fail.
All changes
See https://github.com/avajs/ava/compare/v3.11.1...v3.12.0 for all changes.
Thank you @AnthumChris for making sure our ESM example used ESM syntax (20bc7810536b3b968db5461ff4093bb5ae912050).