Test utilities for Nuxt.js

Usage no npm install needed!

<script type="module">
  import nuxtTestUtils from 'https://cdn.skypack.dev/@nuxt/test-utils';




npm version npm downloads Checks Codecov

Test utilities for Nuxt.js


  • Easy to setup tests
  • Test in browser
  • Extend Jest matchers
  • Written in TypeScript

📖 Read more


  1. Add @nuxt/test-utils devDependency to your project
yarn add --dev @nuxt/test-utils # or npm install --save-dev @nuxt/test-utils
  1. Add @nuxt/test-utils to the preset section of jest.config.js
module.exports = {
  preset: '@nuxt/test-utils'

📖 Read more about setup and configuration


  1. Clone this repository
  2. Install dependencies using yarn install

📑 License

MIT License

Copyright (c) Nuxt.js Team