-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: