diff --git a/en/guide/development-tools.md b/en/guide/development-tools.md index 1ee2e9c8a..ce796d9ba 100644 --- a/en/guide/development-tools.md +++ b/en/guide/development-tools.md @@ -7,14 +7,15 @@ description: Nuxt.js helps you to make your web development enjoyable. ## End-to-End Testing -[Ava](https://github.com/avajs/ava) is a powerful JavaScript testing framework, mixed with [jsdom](https://github.com/tmpvar/jsdom), we can use them to do end-to-end testing easily. +[AVA](https://github.com/avajs/ava) is a powerful JavaScript testing framework, mixed with [jsdom](https://github.com/tmpvar/jsdom), we can use them to do end-to-end testing easily. + +First, we need to add AVA and jsdom as development dependencies: -First, we need to add ava and jsdom as development dependencies: ```bash npm install --save-dev ava jsdom ``` -And add a test script to our `package.json` and configure ava to compile files that we import into our tests. +Then add a test script to our `package.json` and configure AVA to compile files that we import into our tests. ```javascript "scripts": { @@ -33,11 +34,13 @@ And add a test script to our `package.json` and configure ava to compile files t ``` We are going to write our tests in the `test` folder: + ```bash mkdir test ``` Let's say we have a page in `pages/index.vue`: + ```html