Skip to content

Releases: vuejs/vue-jest

v28.1.0

16 Aug 00:42
Compare
Choose a tag to compare

⚠️ Breaking ⚠️

There is a potentially breaking change for some projects: #471 (comment)

If this is a problem you cannot work around, file an issue and we can see what the best option is moving forward. The goal of this PR is to not require ts-jest and typescript to use vue-jest.

Installation

yarn add @vue/[email protected] --dev
yarn add @vue/[email protected] --dev

What's Changed

New Contributors

Full Changelog: v28.0.1...v28.1.0

v28.0.1

28 Jun 01:11
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v28.0.0...v28.0.1

Install: yarn add @vue/vue2-jest or yarn add @vue/vue3-jest.

v28.0.0

17 May 03:13
f75662d
Compare
Choose a tag to compare

We moved the main version to v28.0.0 to match the latest version of Jest on npm, which is also v28. There will always be bugs, we will fix them in patch/minor versions. If you need Jest 27 support, just install with @vue/vue3-jest@27.

Note: I (@lmiller1990) am not using Vue Jest either personally or professionally and cannot prioritise it as much as my other library (Vue Test Utils). If you'd like to assist with maintaining Vue Jest, please reach out.

How to install

  • yarn add @vue/[email protected] (works with Vue 3, Jest 28) or yarn add @vue/vue3-jest@latest for the latest one.
  • yarn add @vue/[email protected] (works with Vue 2, Jest 28) or yarn add @vue/vue2-jest@latest for the latest one.

Fixes

v27.0.0

25 Apr 04:39
Compare
Choose a tag to compare

We moved to v27.0.0 (the library is mostly stable; no need for a drawn out beta and release candidate process). There will always be bugs, we will fix them in patch/minor versions.

Note: I (@lmiller1990) am not using Vue Jest either personally or professionally and cannot prioritise it as much as my other library (Vue Test Utils). If you'd like to assist with maintaining Vue Jest, please reach out.

How to install

  • yarn add @vue/[email protected] (works with Vue 3, Jest 27) or yarn add @vue/vue3-jest@latest for the latest one.
  • yarn add @vue/[email protected] (works with Vue 2, Jest 27) or yarn add @vue/vue2-jest@latest for the latest one.

Fixes

v27.0.0-alpha.4

28 Nov 23:31
Compare
Choose a tag to compare

How to install

  • yarn add @vue/[email protected] (works with Vue 3, Jest 27) or yarn add @vue/vue3-jest@latest for the latest one.
  • yarn add @vue/[email protected] (works with Vue 2, Jest 27) or yarn add @vue/vue2-jest@latest for the latest one.

Features

feat: support custom blocks for Vue 3 (#364) …
feat: allow to pass compilerOptions via the Jest config for Vue 3 (#412) …

Fixes

fix(vue3-jest): interop custom transformer require (#391)

Chores

chore: drop node 10 and add node 16 (#414) …
chore: drop circleci build (#413) …
chore: update to vue v3.2.22 (#411) …

v26.0.1

28 Nov 23:51
d300cf5
Compare
Choose a tag to compare

This version is for Jest 26.x. If you want Jest 27.x, see the 27.x release.

How to install

# Vue 2
yarn add @vue/[email protected]

# Vue 3
yarn add @vue/[email protected]

Fixes

  • (Vue 2) fix: allow importing relative paths in global resources #373
  • (Vue 2, Vue 3): add less relative import (#349)

v27.0.0-alpha.3

25 Oct 10:01
Compare
Choose a tag to compare

@vue/vue2-jest and @vue/vue3-jest

Various updates and bug fixes. See associated PRs for descriptions of what was changed and why.

Features

feat: pass styleOption into compiler (#398)
feat: support TS in templates for @vue/vue3-jest (#394) …
feat: add compilerOptions to vue-jest global options (#380) …
feat: enable sugar ref take 2 for vue3-jest (#377)
feat: support TS with script setup (#402)

Fixes

fix: fixed lang='tsx' files not working for vue2-jest (#395) …

Other

test: compilerOptions (#385) …

@vue/vue2-jest, @vue/vue3-jest v27.0.0-alpha.1

09 Sep 13:16
Compare
Choose a tag to compare

Latest version of Vue Jest with support for Vue 2, Vue 3, and Jest 27.

These are published under the Vue organization on npm. The version reflects the version of Jest the transformer works with. This major release for these two packages v27.0.0, for Jest 27.

v27.0.0-alpha.2

19 Jul 07:21
47244cd
Compare
Choose a tag to compare
v27.0.0-alpha.2 Pre-release
Pre-release

NOTE: important information about versioning moving forward.

Since we need to support a variety of Vue versions (2.x, 3.x) and Jest versions (26.x, 27.x), we are moving away from semantic versioning. Instead. we will now match the Jest version. Jest 27 has some breaking changes, which is why we are moving to this new versioning strategy.

Read more about the new versioning strategy here. The final packages names are still been finalized.

This release works with Vue 3 and Jest 27. Install this release with npm install [email protected]. Note the package name is now vue3-jest, not vue-jest.

Vue 2 support for Jest will come soon - currently Vue 2 and Jest 27 are not supported yet (soon, though).

The code in this version is the same as the previous release, 5.0.0-alpha.10. The only difference is some changes breaking to support Jest 27.

5.0.0-alpha.10

31 May 07:01
Compare
Choose a tag to compare

Features