Testing

4 entries

Vitest is the usual test runner for Vue projects built with Vite. It reuses your Vite config, runs quickly in watch mode and offers a Jest-compatible API, so moving from Jest is mostly mechanical. To mount components you also need Vue Test Utils, the official component testing library, or Vue Testing Library, which builds on Vue Test Utils and encourages tests that query the page the way users see it.

The listed Vue Testing Library repository has had no commit since mid-2024, so check its releases against your Vue version. For end-to-end tests, Playwright and Cypress both work well with Vue apps, and Cypress also offers component testing. Of the smaller entries, jest-serializer-vue-tjw improves Jest snapshot formatting, and vue-hubble, for selecting elements in UI tests, is archived. Snapshot tests catch accidental changes but break often, so test behavior first.

4 entries

vitest

Next generation testing framework powered by Vite.

Not stated17.3kupdated 1d ago

Vue Testing Library@testing-library/vue

Simple and complete testing utilities that encourage good testing practices. Based on DOM Testing Library and built upon the official Vue Test Utils.

Vue 31.1kupdated 2y ago

jest-serializer-vue-tjwtjw-lint/vue3-snapshot-serializer

Improved formatting of Jest Snapshots

Vue 316updated 8d ago

vue-hubble

A better way to select elements for UI testing in Vue.

Not stated13archived
Esc

Type to search every entry. ↑↓ to move, Enter to open.