fix flakey unit tests I hope

This commit is contained in:
Keith J. Grant 2021-07-07 16:52:55 -07:00
parent 78d6e21256
commit 0e12c7deb4
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,7 @@ import React from 'react';
import { mountWithContexts } from '../../../testUtils/enzymeHelpers';
import Job from './Jobs';
import Job from './Job';
jest.mock('react-router-dom', () => ({
...jest.requireActual('react-router-dom'),

View File

@ -18,7 +18,6 @@ describe('<Jobs />', () => {
});
afterEach(() => {
wrapper.unmount();
jest.clearAllMocks();
});