Removing tracks from Album (for now); Jest and react-dnd not getting along

This commit is contained in:
James Barnsley
2022-10-30 16:50:15 +13:00
parent 7564c1bdee
commit 84db4e0789
3 changed files with 117 additions and 72 deletions

View File

@ -5,8 +5,8 @@ import { state as mockState } from '../state';
jest.mock('react-dnd', () => ({
...jest.requireActual('react-dnd'),
useDrag: jest.fn(),
useDrop: jest.fn(),
useDrag: () => jest.fn(),
useDrop: () => jest.fn(),
}));
jest.mock('redux-persist', () => ({
...jest.requireActual('redux-persist'),