Vue-jest
lastmod 2026-11-10created 2022-04-273 edits
vue-jest is a transformer that converts Vue single-file components (.vue) so they can be tested in Jest. It compiles the template, script, and style blocks into JavaScript that Jest can run, and supports TypeScript and various preprocessors. You register it under transform in the Jest configuration, and there are separate versions for Vue 2 and Vue 3.
Jest Vue transformer