t.passed can now be used in tests and teardown functions. Thanks @tymfear! 900dc6d
In AVA 4, you'll no longer be able to pass null as the expectation for t.throws() & t.throwsAsync(). You can opt in to this early by enabling the disableNullExpectations experiment. Thanks @JSimoni42! f328a69
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.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ ava (3.11.1 → 3.13.0) · Repo
Release Notes
3.13.0
3.12.1
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 24 commits:
3.13.0
Improve TypeScript recipe
Update dependencies
Experimentally implement shared workers
Clean-up in lib/fork.js
Tweak reporter integration tests
Implement flow-control for test worker IPC
Experimentally disable null expectations for throws assertions
Convert integration tests to be self-hosted
Make `t.passed` usable in tests and teardown functions
Sanitize timers.js positions in reporter logs
Update enzyme recipe to work with latest enzyme
Fix typo in VSCode recipe
3.12.1
Revert advanced IPC
3.12.0
Update dependencies
Experimentally configure module formats for test files
Test compatibility with TypeScript 4.0
Don't use global setImmediate
Delete unused Node.js 13 reporter logs
Use advanced serialization (when available) for worker communication
Use ESM syntax for ESM example
Move Vadim to the 'Former' contributors list ❤️
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands