mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-05 21:53:56 +00:00
.. | ||
pages | ||
test | ||
package.json | ||
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