Skip to content

Commit

Permalink
Ship v3 🎉
Browse files Browse the repository at this point in the history
* Remove v3 caveats from documentation

Fixes #2349

* Update dev dependencies

* Finalize Babel provider protocol

Fixes #2348

* Rebuild package-lock
  • Loading branch information
novemberborn committed Jan 19, 2020
1 parent 0d11ff7 commit 776788f
Show file tree
Hide file tree
Showing 9 changed files with 367 additions and 330 deletions.
2 changes: 0 additions & 2 deletions docs/06-configuration.md
Expand Up @@ -2,8 +2,6 @@

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

**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.**

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.

To ignore files, prefix the pattern with an `!` (exclamation mark).
Expand Down
2 changes: 0 additions & 2 deletions docs/recipes/babel.md
Expand Up @@ -2,8 +2,6 @@

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

**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.**

You can enable Babel support by installing `@ava/babel`, and then in AVA's configuration setting `babel` to `true`:

**`package.json`:**
Expand Down
2 changes: 0 additions & 2 deletions docs/recipes/debugging-with-chrome-devtools.md
Expand Up @@ -2,8 +2,6 @@

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

**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.**

You can debug your tests using [Chrome DevTools](https://developers.google.com/web/tools/chrome-devtools).

Open Chrome, then navigate to <chrome://inspect/>. Click the *Open dedicated DevTools for Node* link within the *Devices* section.
Expand Down
2 changes: 0 additions & 2 deletions docs/recipes/debugging-with-vscode.md
Expand Up @@ -2,8 +2,6 @@

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

**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.**

You can debug your tests using [Visual Studio Code](https://code.visualstudio.com/).

## Creating a launch configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/typescript.md
Expand Up @@ -4,7 +4,7 @@ Translations: [Español](https://github.com/avajs/ava-docs/blob/master/es_ES/doc

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

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.
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.

## Configuring AVA to compile TypeScript files on the fly

Expand Down
2 changes: 0 additions & 2 deletions docs/recipes/watch-mode.md
Expand Up @@ -2,8 +2,6 @@

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)

**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.**

AVA comes with an intelligent watch mode. It watches for files to change and runs just those tests that are affected.

## Running tests with watch mode enabled
Expand Down
5 changes: 2 additions & 3 deletions lib/babel-manager.js
Expand Up @@ -8,8 +8,7 @@ module.exports = ({projectDir}) => {
let fatal;
const provider = makeProvider({
negotiateProtocol(identifiers, {version}) {
// TODO: Remove `-pre` before releasing AVA@3.
if (!identifiers.includes('ava-3-pre')) {
if (!identifiers.includes('ava-3')) {
fatal = new Error(`This version of AVA (${ava.version}) is not compatible with@ava/babel@${version}`);
return null;
}
Expand All @@ -19,7 +18,7 @@ module.exports = ({projectDir}) => {
async findFiles({extensions, patterns}) {
return globs.findFiles({cwd: projectDir, extensions, filePatterns: patterns});
},
identifier: 'ava-3-pre',
identifier: 'ava-3',
normalizeGlobPatterns: globs.normalizePatterns,
projectDir
};
Expand Down
670 changes: 359 additions & 311 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -111,7 +111,7 @@
"yargs": "^15.1.0"
},
"devDependencies": {
"@ava/babel": "^0.7.0",
"@ava/babel": "^1.0.0",
"@types/node": "^10.17.13",
"ansi-escapes": "^4.3.0",
"delay": "^4.3.0",
Expand All @@ -124,14 +124,14 @@
"react": "^16.12.0",
"react-test-renderer": "^16.12.0",
"replace-string": "^3.0.0",
"sinon": "^8.0.4",
"sinon": "^8.1.0",
"source-map-fixtures": "^2.1.0",
"tap": "^14.10.5",
"tap": "^14.10.6",
"temp-write": "^4.0.0",
"tempy": "^0.3.0",
"touch": "^3.1.0",
"ts-node": "^8.6.1",
"typescript": "^3.7.4",
"ts-node": "^8.6.2",
"typescript": "^3.7.5",
"xo": "^0.25.3",
"zen-observable": "^0.8.15"
},
Expand Down

0 comments on commit 776788f

Please sign in to comment.