fix rest of tests

This commit is contained in:
Ben Irvin 2023-05-24 15:11:29 +02:00
parent 8a5097c8ba
commit 85341a4bbe
7 changed files with 4 additions and 7 deletions

View File

@ -81,7 +81,6 @@ describe('Content-Manager | <InputUID />', () => {
beforeEach(() => {
jest.clearAllMocks();
jest.restoreAllMocks();
});
test('renders', async () => {

View File

@ -62,7 +62,7 @@ jest.mock('../../../hooks', () => ({
describe('RepeatableComponents', () => {
afterEach(() => {
jest.restoreAllMocks();
jest.clearAllMocks();
});
const defaultProps = {

View File

@ -86,7 +86,6 @@ describe('ADMIN | PAGES | AUTH | Register', () => {
beforeEach(() => {
jest.clearAllMocks();
jest.restoreAllMocks();
});
it('Render form elements', () => {

View File

@ -82,7 +82,7 @@ const makeApp = (history) => {
describe('ADMIN | Pages | API TOKENS | EditView', () => {
afterAll(() => {
jest.resetAllMocks();
jest.clearAllMocks();
});
it('renders and matches the snapshot when creating token', async () => {

View File

@ -98,7 +98,6 @@ describe('Admin | Settings | Review Workflow | ReviewWorkflowsPage', () => {
beforeEach(() => {
jest.clearAllMocks();
jest.restoreAllMocks();
});
test('handle initial loading state', () => {

View File

@ -43,7 +43,7 @@ const render = (
describe('Upload - Configure', () => {
beforeEach(() => {
jest.restoreAllMocks();
jest.clearAllMocks();
});
describe('initial render', () => {

View File

@ -46,7 +46,7 @@ describe('ADMIN | Pages | Settings | Advanced Settings', () => {
});
afterAll(() => {
jest.resetAllMocks();
jest.clearAllMocks();
server.close();
});