From 841526144eb5529d057cb8b390a0b3bad0dda5eb Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sun, 29 Jan 2023 20:35:53 +0100 Subject: [PATCH] State that documentation assumes ES modules (And update the sample version number because why not.) --- readme.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index a16e308be..81ab59c85 100644 --- a/readme.md +++ b/readme.md @@ -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" } } ``` @@ -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';