Skip to content

Commit 776788f

Browse files
authored
Ship v3 🎉
* Remove v3 caveats from documentation Fixes #2349 * Update dev dependencies * Finalize Babel provider protocol Fixes #2348 * Rebuild package-lock
1 parent 0d11ff7 commit 776788f

File tree

9 files changed

+367
-330
lines changed

9 files changed

+367
-330
lines changed

docs/06-configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/06-configuration.md)
44

5-
**This documents the upcoming AVA 3 release. See the [AVA 2](https://github.com/avajs/ava/blob/v2.4.0/docs/06-configuration.md) documentation instead.**
6-
75
All of the [CLI options][CLI] can be configured in the `ava` section of either your `package.json` file, or an `ava.config.*` file. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt.
86

97
To ignore files, prefix the pattern with an `!` (exclamation mark).

docs/recipes/babel.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/babel.md)
44

5-
**The upcoming AVA 3 release removes built-in Babel support. See the [AVA 2](https://github.com/avajs/ava/blob/v2.4.0/docs/recipes/babel.md) documentation instead.**
6-
75
You can enable Babel support by installing `@ava/babel`, and then in AVA's configuration setting `babel` to `true`:
86

97
**`package.json`:**

docs/recipes/debugging-with-chrome-devtools.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/debugging-with-chrome-devtools.md)
44

5-
**This recipe describes the new `inspect` command in the upcoming AVA 3 release. See the [AVA 2](https://github.com/avajs/ava/blob/v2.4.0/docs/recipes/debugging-with-chrome-devtools.md) documentation instead.**
6-
75
You can debug your tests using [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools).
86

97
Open Chrome, then navigate to <chrome://inspect/>. Click the *Open dedicated DevTools for Node* link within the *Devices* section.

docs/recipes/debugging-with-vscode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/debugging-with-vscode.md)
44

5-
**This recipe describes the new `inspect` command in the upcoming AVA 3 release. See the [AVA 2](https://github.com/avajs/ava/blob/v2.4.0/docs/recipes/debugging-with-vscode.md) documentation instead.**
6-
75
You can debug your tests using [Visual Studio Code](https://code.visualstudio.com/).
86

97
## Creating a launch configuration

docs/recipes/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/doc
44

55
AVA comes bundled with a TypeScript definition file. This allows developers to leverage TypeScript for writing tests.
66

7-
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition has been tested with version 3.7.4.
7+
This guide assumes you've already set up TypeScript for your project. Note that AVA's definition has been tested with version 3.7.5.
88

99
## Configuring AVA to compile TypeScript files on the fly
1010

docs/recipes/watch-mode.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/recipes/watch-mode.md), [Italiano](https://github.com/avajs/ava-docs/blob/master/it_IT/docs/recipes/watch-mode.md), [Русский](https://github.com/avajs/ava-docs/blob/master/ru_RU/docs/recipes/watch-mode.md), [简体中文](https://github.com/avajs/ava-docs/blob/master/zh_CN/docs/recipes/watch-mode.md)
44

5-
**This documents the upcoming AVA 3 release. See the [AVA 2](https://github.com/avajs/ava/blob/v2.4.0/docs/recipes/watch-mode.md) documentation instead.**
6-
75
AVA comes with an intelligent watch mode. It watches for files to change and runs just those tests that are affected.
86

97
## Running tests with watch mode enabled

lib/babel-manager.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ module.exports = ({projectDir}) => {
88
let fatal;
99
const provider = makeProvider({
1010
negotiateProtocol(identifiers, {version}) {
11-
// TODO: Remove `-pre` before releasing AVA@3.
12-
if (!identifiers.includes('ava-3-pre')) {
11+
if (!identifiers.includes('ava-3')) {
1312
fatal = new Error(`This version of AVA (${ava.version}) is not compatible with@ava/babel@${version}`);
1413
return null;
1514
}
@@ -19,7 +18,7 @@ module.exports = ({projectDir}) => {
1918
async findFiles({extensions, patterns}) {
2019
return globs.findFiles({cwd: projectDir, extensions, filePatterns: patterns});
2120
},
22-
identifier: 'ava-3-pre',
21+
identifier: 'ava-3',
2322
normalizeGlobPatterns: globs.normalizePatterns,
2423
projectDir
2524
};

package-lock.json

Lines changed: 359 additions & 311 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"yargs": "^15.1.0"
112112
},
113113
"devDependencies": {
114-
"@ava/babel": "^0.7.0",
114+
"@ava/babel": "^1.0.0",
115115
"@types/node": "^10.17.13",
116116
"ansi-escapes": "^4.3.0",
117117
"delay": "^4.3.0",
@@ -124,14 +124,14 @@
124124
"react": "^16.12.0",
125125
"react-test-renderer": "^16.12.0",
126126
"replace-string": "^3.0.0",
127-
"sinon": "^8.0.4",
127+
"sinon": "^8.1.0",
128128
"source-map-fixtures": "^2.1.0",
129-
"tap": "^14.10.5",
129+
"tap": "^14.10.6",
130130
"temp-write": "^4.0.0",
131131
"tempy": "^0.3.0",
132132
"touch": "^3.1.0",
133-
"ts-node": "^8.6.1",
134-
"typescript": "^3.7.4",
133+
"ts-node": "^8.6.2",
134+
"typescript": "^3.7.5",
135135
"xo": "^0.25.3",
136136
"zen-observable": "^0.8.15"
137137
},

0 commit comments

Comments
 (0)