Skip to content

3.12.1

Compare
Choose a tag to compare
@novemberborn novemberborn released this 23 Aug 19:39
v3.12.1
ac2ae05

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! 5c9dbb9

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 v3.11.1...v3.12.1 for all changes.

Thank you @anthumchris for making sure our ESM example used ESM syntax (20bc781).