Test utilities for Nuxt.js
- Easy to setup tests
- Test in browser
- Extend Jest matchers
- Written in TypeScript
π Read more
- Add
@nuxt/test-utils
devDependency to your project
yarn add --dev @nuxt/test-utils # or npm install --save-dev @nuxt/test-utils
- Add
@nuxt/test-utils
to thepreset
section ofjest.config.js
module.exports = {
preset: '@nuxt/test-utils'
}
- Clone this repository
- Install dependencies using
yarn install
Copyright (c) Nuxt.js Team