Skip to content

Commit

Permalink
Mock nanoid for react-components.
Browse files Browse the repository at this point in the history
  • Loading branch information
huwshimi committed Nov 9, 2020
1 parent 8e3fbe4 commit c9e1898
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/src/setupTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit c9e1898

Please sign in to comment.