Add mock for useTranslation to i18n of ui-tests

This commit is contained in:
Sebastian Sdorra
2020-10-07 15:38:45 +02:00
parent 330e974cac
commit 6b261fa7cb

View File

@@ -30,5 +30,10 @@ jest.mock("react-i18next", () => ({
t: (key: string) => key
};
return Component;
},
useTranslation: (ns: string) => {
return [
(key: string) => key
];
}
}));