diff --git a/ui/src/setupTests.js b/ui/src/setupTests.js index 2dba2161de..adebddc064 100644 --- a/ui/src/setupTests.js +++ b/ui/src/setupTests.js @@ -12,8 +12,8 @@ jest.mock("@reduxjs/toolkit", () => { }; }); -jest.mock("uuid/v4", () => { - return jest.fn(() => "Uakgb_J5m9g-0JDMbcJqLJ"); -}); +jest.mock("nanoid", () => ({ + nanoid: jest.fn(() => "Uakgb_J5m9g-0JDMbcJqLJ"), +})); enableFetchMocks();