Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@vue/server-test-utils

vuejs76kMIT1.3.0TypeScript support: included

Utilities for testing Vue components.

readme

Vue Test Utils Build Status

Vue Test Utils is the official testing library for Vue.js.

Packages

This repository provides the following two packages:

You can install these packages by the following command.

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

Peer Dependencies

You need to install vue-template-compiler which is used to compile components. It should be the same version as the version of Vue you are using.

npm install --save-dev vue-template-compiler

Documentation

Refer to the documentation

Questions

For questions and support please use the Discord 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.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Changes for each release are documented in the release notes.

Stay In Touch

For the latest releases and announcements, follow on Twitter: @vuejs

License

MIT

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.1.3 (2021-02-04)

Bug Fixes

  • prevent setProps infinite loop with immediate watchers (#1752) (db4ab8b)

1.0.5 (2020-08-29)

Note: Version bump only for package @vue/server-test-utils

1.0.4 (2020-08-17)

Note: Version bump only for package @vue/server-test-utils

1.0.2 (2020-05-06)

Note: Version bump only for package @vue/server-test-utils

1.0.0 (2020-05-05)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.33 (2020-04-08)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.32 (2020-03-09)

Bug Fixes

  • improvement functional component features (#1427) (ebcf97c)

1.0.0-beta.31 (2020-01-18)

Features

  • change to a named export (d45e248)

1.0.0-beta.30 (2019-11-28)

Bug Fixes

  • return promise from render and renderToString (#1164) (3c597d3)
  • types: allow false as a component stub value (#1231) (2a4c6ef)

Code Refactoring

Features

BREAKING CHANGES

  • render and renderToString are now async
    • Remove sync mode
  • Remove TransitionStub
  • Remove Transition

1.0.0-beta.29 (2019-02-02)

Bug Fixes

1.0.0-beta.28 (2018-12-29)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.27 (2018-12-09)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.26 (2018-11-26)

Bug Fixes

1.0.0-beta.25 (2018-09-08)

Bug Fixes

  • handle global stubs and functional extended components (#943) (0d1ddd1)

Performance Improvements

1.0.0-beta.24 (2018-08-05)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.23 (2018-07-31)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.22 (2018-07-29)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.21 (2018-07-22)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.20 (2018-06-24)

Bug Fixes

1.0.0-beta.19 (2018-06-14)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.18 (2018-06-09)

Note: Version bump only for package @vue/server-test-utils

1.0.0-beta.17 (2018-06-09)

Bug Fixes