diff --git a/scm-ui/ui-tests/i18n.ts b/scm-ui/ui-tests/i18n.ts index cf44d375b0..5616f755fb 100644 --- a/scm-ui/ui-tests/i18n.ts +++ b/scm-ui/ui-tests/i18n.ts @@ -1,6 +1,6 @@ jest.mock("react-i18next", () => ({ // this mock makes sure any components using the translate HoC receive the t function as a prop - translate: () => (Component: any) => { + withTranslation: () => (Component: any) => { Component.defaultProps = { ...Component.defaultProps, t: (key: string) => key