mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-08 16:42:10 +01:00
Add mock for useTranslation to i18n of ui-tests
This commit is contained in:
@@ -30,5 +30,10 @@ jest.mock("react-i18next", () => ({
|
||||
t: (key: string) => key
|
||||
};
|
||||
return Component;
|
||||
},
|
||||
useTranslation: (ns: string) => {
|
||||
return [
|
||||
(key: string) => key
|
||||
];
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user