From 52d2a7a1625f31c86bd2a1ad5222013bf20b6d5e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Tue, 22 Dec 2015 13:36:12 +0100 Subject: [PATCH] followup to #333 --- package.json | 3 +-- readme.md | 12 +----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index f8f90114c..ed58a32cf 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "arr-flatten": "^1.0.1", "arrify": "^1.0.0", "ava-init": "^0.1.0", - "babel-core": "^6.3.17", + "babel-core": "^6.3.21", "babel-plugin-espower": "^2.0.0", "babel-plugin-transform-runtime": "^6.3.13", "babel-preset-es2015": "^6.3.13", @@ -97,7 +97,6 @@ "figures": "^1.4.0", "fn-name": "^2.0.0", "globby": "^4.0.0", - "has-generator": "^1.0.0", "is-generator-fn": "^1.0.0", "is-observable": "^0.1.0", "is-promise": "^2.1.0", diff --git a/readme.md b/readme.md index c54dd20a0..50f4f82de 100644 --- a/readme.md +++ b/readme.md @@ -358,17 +358,7 @@ test(t => { ### ES2015 support -AVA comes with builtin support for ES2015 through [Babel](https://babeljs.io). - -Just write your tests in ES2015. No extra setup needed. - -```js -test(t => { - t.pass(); -}); -``` - -We don't yet [support Babel 6](https://github.com/sindresorhus/ava/pull/221), but you can use any Babel version in your project. We use our own bundled one. +AVA comes with builtin support for ES2015 through [Babel 6](https://babeljs.io). Just write your tests in ES2015. No extra setup needed. You can use any Babel version in your project. We use our own bundled Babel with the [`es2015`](http://babeljs.io/docs/plugins/preset-es2015/) and [`stage-2`](http://babeljs.io/docs/plugins/preset-stage-2/) presets. #### Transpiling Imported Modules