Revert timeout to original

This commit is contained in:
Mark Kaylor 2022-11-09 18:20:58 +01:00
parent 9229d53ad1
commit c4150aa613
2 changed files with 4 additions and 4 deletions

View File

@ -20,6 +20,8 @@ import { createMemoryHistory } from 'history';
import MarketPlacePage from '../index';
import server from './server';
// Increase the jest timeout to accommodate long running tests
jest.setTimeout(50000);
const toggleNotification = jest.fn();
jest.mock('../../../hooks/useNavigatorOnLine', () => jest.fn(() => true));
jest.mock('@strapi/helper-plugin', () => ({
@ -58,8 +60,6 @@ const waitForReload = async () => {
};
describe('Marketplace page - plugins tab', () => {
// Increase the jest timeout to accommodate long running tests
jest.setTimeout(30000);
let renderedContainer;
let history;

View File

@ -19,6 +19,8 @@ import { createMemoryHistory } from 'history';
import MarketPlacePage from '../index';
import server from './server';
// Increase the jest timeout to accommodate long running tests
jest.setTimeout(50000);
const toggleNotification = jest.fn();
jest.mock('../../../hooks/useNavigatorOnLine', () => jest.fn(() => true));
jest.mock('@strapi/helper-plugin', () => ({
@ -71,8 +73,6 @@ describe('Marketplace page - providers tab', () => {
afterAll(() => server.close());
beforeEach(async () => {
// Increase the jest timeout to accommodate long running tests
jest.setTimeout(30000);
history = createMemoryHistory();
// Make sure each test isolated
const { container } = render(