@@ -6,18 +6,23 @@ Jest transformer for Vue Single File Components.
66
77Since we need to support a variety of Vue and Jest versions, vue-jest doesn't follow semantic versioning.
88
9- | Vue version | Jest Version | Package |
10- | ----------- | ----------------- | ------------------- |
11- | Vue 2 | Jest 26 and below | ` vue-jest@4 ` |
12- | Vue 3 | Jest 26 and below | ` vue-jest@5 ` |
13- | Vue 2 | Jest 27 and above | ` @vue/vue2-jest@xx ` |
14- | Vue 3 | Jest 27 and above | ` @vue/vue3-jest@xx ` |
15-
16- ** xx ** : Major version of Jest
9+ | Vue version | Jest Version | npm Package | Branch |
10+ | ----------- | ----------------- | ------------------- | ------ |
11+ | Vue 2 | Jest 26 and below | ` vue-jest@4 ` | |
12+ | Vue 3 | Jest 26 and below | ` vue-jest@5 ` | |
13+ | Vue 2 | Jest 27 and above | ` @vue/vue2-jest@27 ` | 27.x |
14+ | Vue 3 | Jest 27 and above | ` @vue/vue3-jest@27 ` | 27.x |
15+ | Vue 2 | Jest 28 and above | ` @vue/vue2-jest@28 ` | 28.x |
16+ | Vue 3 | Jest 27 and above | ` @vue/vue3-jest@28 ` | 28.x |
1717
1818``` bash
19- npm install --save-dev @vue/vue2-jest # (use the appropriate version)
20- yarn add @vue/vue2-jest --dev
19+ # Vue 2
20+ npm install --save-dev @vue/vue2-jest@28 # (use the appropriate version)
21+ yarn add @vue/vue2-jest@28 --dev
22+
23+ # Vue 3
24+ npm install --save-dev @vue/vue3-jest@28 # (use the appropriate version)
25+ yarn add @vue/vue3-jest@28 --dev
2126```
2227
2328## Setup
0 commit comments