Test utilities for Nuxt.js
- Easy to setup tests
- Test in browser
- Extend Jest matchers
- Written in TypeScript
- 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'
}
📖 Read more about setup and configuration
- Clone this repository
- Install dependencies using
yarn install
Copyright (c) Nuxt.js Team