mirror of
https://github.com/gosticks/web.git
synced 2026-08-12 20:20:25 +00:00
Include a single entry in languages.json while testing
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user