Snyk has created this PR to upgrade ava from 3.8.1 to 3.8.2.
β¨What is Merge Advice?
We check thousands of dependency upgrade pull requests and CI tests every day to see which upgrades were successfully merged. After crunching this data, we give a recommendation on how safe we think the change is for you to merge without causing issues. Learn more, and share your feedback to help improve this feature. π
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 1 version ahead of your current version.
The recommended version was released 9 days ago, on 2020-05-08.
Running npx ava test.js:2 for would run the unicorn test. In fact you could use any line number between 1 and 3.
This feature is only available from the command line. It won't work if you use tools like ts-node/register or @babel/register, and it does not currently work with @ava/babel and @ava/typescript. See #2473.
Thank you @ulken for your hard work and patience to get this shipped. 1222ce9
Test-specific teardown functions
Sometimes tests have side-effects you want to clean up. @ulken has implemented t.teardown() which lets you register teardown functions within your test. They'll run once your test has finished, even if it failed: 75cbc3b
test('read file', t => {
fs.writeFileSync('file.txt', 'π');
t.teardown(() => fs.unlinkSync('file.txt');
// Run assertions
});
Node.js internal in stack traces
Thanks to @bunysae, stack traces now include Node.js internals. Previously we removed them because we wanted you to focus on your own code, but quite often they do provide context. Now they're displayed, but somewhat dimmed. 9a9351d
Watch mode with the default reporter
Watch mode with the default reporter once again accepts key input. Thanks @pcdevil! 59c227d
ICYMI
afterEach() and afterEach.always() hooks can now determine whether the test passed. Thank you @bunysae for contributing this! 8f312c0
test('passes',t=>t.pass());test.afterEach(t=>{if(t.passed){// Do something because the test passed}else{// Do something because the test failed}});
If you've ever wanted to save some files along with AVA's snapshots, you can now determine the directory path by accessing test.meta.snapshotDirectory. Thank you @ulken! cb5f9f7
Snyk has created this PR to upgrade ava from 3.8.1 to 3.8.2.
β¨What is Merge Advice?
We check thousands of dependency upgrade pull requests and CI tests every day to see which upgrades were successfully merged. After crunching this data, we give a recommendation on how safe we think the change is for you to merge without causing issues. Learn more, and share your feedback to help improve this feature. π:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: ava
v3.8.1...v3.8.2
Node.js 14 support
Great news, this is a feature heavy release!
First off, though, AVA now officially supports Node.js 14. Thank you @zackschuster! 2e7c76b
Run tests at specific line numbers
AVA can now run tests at specific line numbers!π
Given the following test file:
test.js
Running
npx ava test.js:2
for would run theunicorn
test. In fact you could use any line number between1
and3
.This feature is only available from the command line. It won't work if you use tools like
ts-node/register
or@babel/register
, and it does not currently work with@ava/babel
and@ava/typescript
. See #2473.Thank you @ulken for your hard work and patience to get this shipped. 1222ce9
Test-specific teardown functions
Sometimes tests have side-effects you want to clean up. @ulken has implemented
t.teardown()
which lets you register teardown functions within your test. They'll run once your test has finished, even if it failed: 75cbc3bNode.js internal in stack traces
Thanks to @bunysae, stack traces now include Node.js internals. Previously we removed them because we wanted you to focus on your own code, but quite often they do provide context. Now they're displayed, but somewhat dimmed. 9a9351d
Watch mode with the default reporter
Watch mode with the default reporter once again accepts key input. Thanks @pcdevil! 59c227d
ICYMI
afterEach()
andafterEach.always()
hooks can now determine whether the test passed. Thank you @bunysae for contributing this! 8f312c0If you've ever wanted to save some files along with AVA's snapshots, you can now determine the directory path by accessing
test.meta.snapshotDirectory
. Thank you @ulken! cb5f9f7All changes
See v3.7.1...v3.8.1 for all changes.
Commit messages
Package name: ava
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
π§ View latest project report
π Adjust upgrade PR settings
π Ignore this dependency or unsubscribe from future upgrade PRs