vue-jest transformer for i18n custom blocks
npm install vue-i18n-jest


vue-jest transformer for i18n custom blocks
> :warning: NOTE: This transformer is for vue-jest@v4
``sh`
npm install --save-dev vue-i18n-jest
`sh`
yarn add -D vue-i18n-jest
To define vue-i18n-jest as a transformer for your .vue files that have i18n custom blocks, map them to the vue-i18n-jest module.
if you've already setup vue-jest, You can change it as follows:
`js``
module.exports = {
globals: {
'vue-jest': {
transform: {
'i18n': 'vue-i18n-jest'
}
}
}
}