Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
test:
strategy:
matrix:
node: [14, 16, 18]
node: [18, 20, 22, 24]
runs-on: ubuntu-latest

steps:
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@ Since we need to support a variety of Vue and Jest versions, vue-jest doesn't fo

| Vue version | Jest Version | npm Package | Branch |
| ----------- | ----------------- | ------------------- | ------ |
| Vue 2 | Jest 26 and below | `vue-jest@4` | |
| Vue 3 | Jest 26 and below | `vue-jest@5` | |
| Vue 2 | Jest 27 and above | `@vue/vue2-jest@27` | 27.x |
| Vue 3 | Jest 27 and above | `@vue/vue3-jest@27` | 27.x |
| Vue 2 | Jest 28 and above | `@vue/vue2-jest@28` | 28.x |
| Vue 3 | Jest 28 and above | `@vue/vue3-jest@28` | 28.x |
| Vue 3 | Jest 29 and above | `@vue/vue3-jest@29` | 29.x |
| Vue 3 | Jest 30 and above | `@vue/vue3-jest@30` | 30.x |

```bash
# Vue 2
npm install --save-dev @vue/vue2-jest@28 # (use the appropriate version)
yarn add @vue/vue2-jest@28 --dev

# Vue 3
npm install --save-dev @vue/vue3-jest@28 # (use the appropriate version)
yarn add @vue/vue3-jest@28 --dev
Expand All @@ -33,7 +28,7 @@ To use `vue-jest` as a transformer for your `.vue` files, map them to the approp
{
"jest": {
"transform": {
"^.+\\.vue$": "@vue/vue2-jest" // Update to match your installed version
"^.+\\.vue$": "@vue/vue3-jest" // Update to match your installed version
}
}
}
Expand All @@ -47,7 +42,7 @@ A full config will look like this.
"moduleFileExtensions": ["js", "json", "vue"],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "@vue/vue2-jest"
"^.+\\.vue$": "@vue/vue3-jest"
}
}
}
Expand Down Expand Up @@ -115,7 +110,7 @@ A `package.json` Example
"moduleFileExtensions": ["js", "json", "vue"],
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.vue$": "@vue/vue2-jest"
"^.+\\.vue$": "@vue/vue3-jest"
},
"globals": {
"vue-jest": {
Expand Down
47 changes: 0 additions & 47 deletions e2e/2.x/babel-in-package/components/Basic.vue

This file was deleted.

8 changes: 0 additions & 8 deletions e2e/2.x/babel-in-package/components/Coffee.vue

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/2.x/babel-in-package/components/Tsx.vue

This file was deleted.

21 changes: 0 additions & 21 deletions e2e/2.x/babel-in-package/components/TypeScript.vue

This file was deleted.

13 changes: 0 additions & 13 deletions e2e/2.x/babel-in-package/components/TypeScriptChild.vue

This file was deleted.

43 changes: 0 additions & 43 deletions e2e/2.x/babel-in-package/package.json

This file was deleted.

25 changes: 0 additions & 25 deletions e2e/2.x/babel-in-package/test.js

This file was deleted.

20 changes: 0 additions & 20 deletions e2e/2.x/babel-in-package/tsconfig.json

This file was deleted.

113 changes: 0 additions & 113 deletions e2e/2.x/basic/__snapshots__/test.js.snap

This file was deleted.

4 changes: 0 additions & 4 deletions e2e/2.x/basic/babel.config.js

This file was deleted.

Loading
Loading