Skip to content

Commit

Permalink
State that documentation assumes ES modules
Browse files Browse the repository at this point in the history
(And update the sample version number because why not.)
  • Loading branch information
novemberborn committed Jan 29, 2023
1 parent c749348 commit 8415261
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions readme.md
Expand Up @@ -45,11 +45,12 @@ Your `package.json` will then look like this (exact version notwithstanding):
```json
{
"name": "awesome-package",
"type": "module",
"scripts": {
"test": "ava"
},
"devDependencies": {
"ava": "^1.0.0"
"ava": "^5.0.0"
}
}
```
Expand All @@ -72,7 +73,9 @@ Don't forget to configure the `test` script in your `package.json` as per above.

### Create your test file

Create a file named `test.js` in the project root directory:
Create a file named `test.js` in the project root directory.

_Note that AVA's documentation assumes you're using ES modules._

```js
import test from 'ava';
Expand Down

0 comments on commit 8415261

Please sign in to comment.