Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Commit 8e2163f

Browse files
committed
fix!: remove vue2 support
1 parent de5af78 commit 8e2163f

File tree

104 files changed

+26
-3157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+26
-3157
lines changed

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,13 @@ Since we need to support a variety of Vue and Jest versions, vue-jest doesn't fo
88

99
| Vue version | Jest Version | npm Package | Branch |
1010
| ----------- | ----------------- | ------------------- | ------ |
11-
| Vue 2 | Jest 26 and below | `vue-jest@4` | |
1211
| Vue 3 | Jest 26 and below | `vue-jest@5` | |
13-
| Vue 2 | Jest 27 and above | `@vue/vue2-jest@27` | 27.x |
1412
| 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 |
1613
| Vue 3 | Jest 28 and above | `@vue/vue3-jest@28` | 28.x |
14+
| Vue 3 | Jest 29 and above | `@vue/vue3-jest@29` | 29.x |
15+
| Vue 3 | Jest 30 and above | `@vue/vue3-jest@30` | 30.x |
1716

1817
```bash
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-
2318
# Vue 3
2419
npm install --save-dev @vue/vue3-jest@28 # (use the appropriate version)
2520
yarn add @vue/vue3-jest@28 --dev
@@ -33,7 +28,7 @@ To use `vue-jest` as a transformer for your `.vue` files, map them to the approp
3328
{
3429
"jest": {
3530
"transform": {
36-
"^.+\\.vue$": "@vue/vue2-jest" // Update to match your installed version
31+
"^.+\\.vue$": "@vue/vue3-jest" // Update to match your installed version
3732
}
3833
}
3934
}
@@ -47,7 +42,7 @@ A full config will look like this.
4742
"moduleFileExtensions": ["js", "json", "vue"],
4843
"transform": {
4944
"^.+\\.js$": "babel-jest",
50-
"^.+\\.vue$": "@vue/vue2-jest"
45+
"^.+\\.vue$": "@vue/vue3-jest"
5146
}
5247
}
5348
}
@@ -115,7 +110,7 @@ A `package.json` Example
115110
"moduleFileExtensions": ["js", "json", "vue"],
116111
"transform": {
117112
"^.+\\.js$": "babel-jest",
118-
"^.+\\.vue$": "@vue/vue2-jest"
113+
"^.+\\.vue$": "@vue/vue3-jest"
119114
},
120115
"globals": {
121116
"vue-jest": {

e2e/2.x/babel-in-package/components/Basic.vue

Lines changed: 0 additions & 47 deletions
This file was deleted.

e2e/2.x/babel-in-package/components/Coffee.vue

Lines changed: 0 additions & 8 deletions
This file was deleted.

e2e/2.x/babel-in-package/components/Tsx.vue

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/2.x/babel-in-package/components/TypeScript.vue

Lines changed: 0 additions & 21 deletions
This file was deleted.

e2e/2.x/babel-in-package/components/TypeScriptChild.vue

Lines changed: 0 additions & 13 deletions
This file was deleted.

e2e/2.x/babel-in-package/package.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

e2e/2.x/babel-in-package/test.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

e2e/2.x/babel-in-package/tsconfig.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

e2e/2.x/basic/__snapshots__/test.js.snap

Lines changed: 0 additions & 113 deletions
This file was deleted.

0 commit comments

Comments
 (0)