This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
support for vue-jest@v5 #23
Labels
Comments
kazupon
added
help wanted
Extra attention is needed
Type: Feature
Includes new features
labels
Dec 21, 2020
It does not seem to support version 5.
With this Jest configuration: {
// ...
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.vue$': '@vue/vue3-jest',
},
globals: {
'vue-jest': {
transform: {
i18n: 'vue-i18n-jest',
},
},
} It's fail here: I tried to debug, and the value of variable "undefined.__i18n = ['{"en":{...},"fr":{...}}']" This string is not iterable here. My dependencies version: "devDependencies": {
"@babel/core": "^7.16.0",
"@intlify/vite-plugin-vue-i18n": "^3.2.1",
"@intlify/vue-i18n-loader": "^4.0.1",
"@vue/test-utils": "^2.0.0-rc.16",
"@vue/vue3-jest": "^27.0.0-alpha.4",
"babel-loader": "^8.2.3",
"jest": "^27.4.1",
"ts-jest": "^27.0.7",
"typescript": "^4.4.3",
"vue-i18n-jest": "^1.1.1",
"vue-loader": "^16.8.3",
"vue-tsc": "^0.3.0"
} |
After investigating, I tried to change the code to be compatible with Several changes are to be expected:
|
XavierChevalier
pushed a commit
to XavierChevalier/vue-i18n-jest
that referenced
this issue
Nov 30, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
No description provided.
The text was updated successfully, but these errors were encountered: