diff --git a/src/util/__tests__/i18n.test.tsx b/src/util/__tests__/i18n.test.tsx index 95266ee..f7a34d2 100644 --- a/src/util/__tests__/i18n.test.tsx +++ b/src/util/__tests__/i18n.test.tsx @@ -21,7 +21,9 @@ jest.mock("react-i18next", () => ({ })); // languages.json is generated during a build or run, so it may not exist yet -jest.mock("../../languages.json", () => [], { virtual: true }); +jest.mock("../../languages.json", () => [{ code: "en", name: "English" }], { + virtual: true +}); it("configures i18n successfully", async () => { // Provide a mock ajax function to the XHR backend