Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @vue/test-utils with all npm packages installed. Try it out:

require("vue/package.json"); // vue is a peer dependency. require("vue-template-compiler/package.json"); // vue-template-compiler is a peer dependency. var testUtils = require("@vue/test-utils")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@vue/test-utils v1.0.0-beta.29

Utilities for testing Vue components.

Vue Test Utils Build Status

Currently in beta

To use Vue Test Utils beta:

// npm
npm install --save-dev @vue/test-utils

// yarn
yarn add --dev @vue/test-utils

Intro

Vue Test Utils is the official test library for Vue.js. It provides methods for unit testing Vue components.

Documentation

Refer to the documentation

Examples

Questions

For questions and support please use the Discord chat room, Gitter chat room, or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free