You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When testing a parent component some warnings are generated that translation for a key in the child component can not be found: "Value of key 'logout' is not a string!"
The translation for the key logout is defined in the PageWithHeader component.
Same warnings are thrown on the console when the Dashboard component is rendered. In the test for PageWithHeader no warnings are thrown. I can disable the warnings with silentTranslationWarn: true in the index.js, then there are no warnings in the browser console.
However, I don't know how I can disable them in the Dashboard.spec.js. Or may be there is a better option how to change the test setup, so that the parent component does not throw any warnings?
Here is the test setup portion for i18n:
import VueI18n from 'vue-i18n';
const localVue = createLocalVue();
localVue.use(VueI18n);
vue & vue-i18n version
8.18.2
The text was updated successfully, but these errors were encountered:
When testing a parent component some warnings are generated that translation for a key in the child component can not be found:
"Value of key 'logout' is not a string!"
Here is what the component looks like:
The translation for the key
logout
is defined in the PageWithHeader component.Same warnings are thrown on the console when the Dashboard component is rendered. In the test for PageWithHeader no warnings are thrown. I can disable the warnings with
silentTranslationWarn: true
in the index.js, then there are no warnings in the browser console.However, I don't know how I can disable them in the Dashboard.spec.js. Or may be there is a better option how to change the test setup, so that the parent component does not throw any warnings?
Here is the test setup portion for i18n:
vue & vue-i18n version
8.18.2
The text was updated successfully, but these errors were encountered: