Hello,
while using vue3-gettext (version 4.0.0-alpha.8), import { createGettext } from "vue3-gettext" in production code (vite build) works fine, while in the vue-test-utils environment I get an Cannot find module 'vue3-gettext' error.
Useful jest configuration:
"jest": {
...
"transform": {
"^.+\\.vue$": "@vue/vue3-jest",
"^.+\\.svg$": "jest-transform-stub",
"^.+\\.js$": "babel-jest"
},
"testEnvironmentOptions": {
"customExportConditions": ["node", "node-addons"]
},
...
}
I've copied the vue3-gettext.js source file in my app and the import is well found in the jest environment.
So, I guess my jest configuration is missing a flag.
Many thanks for your help.
Hello,
while using vue3-gettext (version 4.0.0-alpha.8),
import { createGettext } from "vue3-gettext"in production code (vite build) works fine, while in the vue-test-utils environment I get anCannot find module 'vue3-gettext'error.Useful jest configuration:
I've copied the vue3-gettext.js source file in my app and the import is well found in the jest environment.
So, I guess my jest configuration is missing a flag.
Many thanks for your help.