-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Description
Hi,
I have a feature request/idea.
I work in a non English speaking country, so we are using vue-i18n
to create a bilingual app. It adds a global $t
function. I have to do:
mocks: {
$t: jest.fn()
}
in every test, or the test fails with $t is undefined
, since almost all components have some form of text.
Should this be something handled by a test running? Not sure - if not, maybe we can have some way to set some default options for all tests, or all shallow
renders or something.
38elements, yk-hirao and petitkriket