test: Move shared imports to setup.ts file

This commit is contained in:
regexowl 2024-07-08 16:30:09 +02:00 committed by Ondřej Ezr
parent 144832f2f8
commit a5f69a2559
22 changed files with 4 additions and 63 deletions

View file

@ -4,14 +4,11 @@ import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import nodeFetch, { Request, Response } from 'node-fetch';
import CreateImageWizard from '../../../Components/CreateImageWizardV2/CreateImageWizard';
import ShareImageModal from '../../../Components/ShareImageModal/ShareImageModal';
import { clickNext, renderCustomRoutesWithReduxRouter } from '../../testUtils';
Object.assign(global, { fetch: nodeFetch, Request, Response });
const routes = [
{
path: 'insights/image-builder/*',