avajs/ava
### [`v3.8.0`](https://togithub.com/avajs/ava/releases/v3.8.0)
[Compare Source](https://togithub.com/avajs/ava/compare/v3.7.1...v3.8.0)
#### 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](https://togithub.com/zackschuster)! [`2e7c76b`](https://togithub.com/avajs/ava/commit/2e7c76b85cb65a04605fed843ee2f571afc66c37)
#### Run tests at specific line numbers
AVA can now run tests at specific line numbers! π
Given the following test file:
`test.js`
```js
1: test('unicorn', t => {
2: t.pass();
3: });
4:
5: test('rainbow', t => {
6: t.fail();
7: });
```
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](https://togithub.com/avajs/ava/issues/2473).
Thank you [@ulken](https://togithub.com/ulken) for your hard work and patience to get this shipped. [`1222ce9`](https://togithub.com/avajs/ava/commit/1222ce9538e4890c20af695e558e3ee490f5a41b)
#### Test-specific teardown functions
Sometimes tests have side-effects you want to clean up. [@ulken](https://togithub.com/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`](https://togithub.com/avajs/ava/commit/75cbc3b2a53d3b8530266b10bed71b838bc11fec)
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](https://togithub.com/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`](https://togithub.com/avajs/ava/commit/9a9351ddbee9c6c76601210c5dd8f5b0d81cc3b0)
#### Watch mode with the default reporter
Watch mode with the default reporter once again accepts key input. Thanks [@pcdevil](https://togithub.com/pcdevil)! [`59c227d`](https://togithub.com/avajs/ava/commit/59c227d9c5261117d99e8e84693b9c89c3438a92)
#### All changes
See for all changes.
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
3.7.1
->3.8.0
Release Notes
avajs/ava
### [`v3.8.0`](https://togithub.com/avajs/ava/releases/v3.8.0) [Compare Source](https://togithub.com/avajs/ava/compare/v3.7.1...v3.8.0) #### 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](https://togithub.com/zackschuster)! [`2e7c76b`](https://togithub.com/avajs/ava/commit/2e7c76b85cb65a04605fed843ee2f571afc66c37) #### Run tests at specific line numbers AVA can now run tests at specific line numbers! π Given the following test file: `test.js` ```js 1: test('unicorn', t => { 2: t.pass(); 3: }); 4: 5: test('rainbow', t => { 6: t.fail(); 7: }); ``` 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](https://togithub.com/avajs/ava/issues/2473). Thank you [@ulken](https://togithub.com/ulken) for your hard work and patience to get this shipped. [`1222ce9`](https://togithub.com/avajs/ava/commit/1222ce9538e4890c20af695e558e3ee490f5a41b) #### Test-specific teardown functions Sometimes tests have side-effects you want to clean up. [@ulken](https://togithub.com/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`](https://togithub.com/avajs/ava/commit/75cbc3b2a53d3b8530266b10bed71b838bc11fec) 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](https://togithub.com/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`](https://togithub.com/avajs/ava/commit/9a9351ddbee9c6c76601210c5dd8f5b0d81cc3b0) #### Watch mode with the default reporter Watch mode with the default reporter once again accepts key input. Thanks [@pcdevil](https://togithub.com/pcdevil)! [`59c227d`](https://togithub.com/avajs/ava/commit/59c227d9c5261117d99e8e84693b9c89c3438a92) #### All changes SeeRenovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Enabled.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.