setupTests.js 185 B

1234567891011
  1. // do some test init
  2. const localStorageMock = {
  3. getItem: jest.fn(),
  4. setItem: jest.fn(),
  5. removeItem: jest.fn(),
  6. clear: jest.fn(),
  7. };
  8. global.localStorage = localStorageMock;