Nuxt/examples/with-ava
Sébastien Chopin 2677afb46f Fix due 2.0.6~7 and add error() in context 2016-11-17 11:57:12 +01:00
..
pages Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
test Fix due 2.0.6~7 and add error() in context 2016-11-17 11:57:12 +01:00
Readme.md Prototype 0.1.0 working 2016-11-07 02:34:58 +01:00
package.json Add package.jsonn in examples 2016-11-10 14:30:18 +01:00

Readme.md

Add testing to your nuxt app using ava and jsdom

ava is a powerful JavaScript testing framework, mixed with jsdom, we can use them to do end-to-end testing easily for nuxt applications.

npm install --save-dev ava jsdom

Add test script to the package.json

package.json

// ...
"scripts": {
  "test": "ava",
}
// ...

Launch the tests:

npm test