<i18n> in SFC not working when executing test with Jest
ChristophWalter opened this issue · comments
As part of my integration tests, I want to use i18n also within my test. I installed the vue plugin like in the production code, but during execution I get the following warnings and no strings are translated:
[vue-i18n] Cannot translate the value of keypath 'xyz'. Use the value of keypath as default.
Is this intended to work? Is there a way of setting up webpack to resolve the i18n blocks also during test execution?
You can use vue-i18n-jest
https://github.com/intlify/vue-i18n-jest