test: Move @testing-library/jest-dom import to test setup file

This removes `@testing-library/jest-dom` from single test files and adds it to the shared setup.ts file.
This commit is contained in:
regexowl 2024-07-19 16:03:26 +02:00 committed by Ondřej Ezr
parent f26e4f47df
commit eb2cfe9a2f
19 changed files with 1 additions and 24 deletions

View file

@ -1,5 +1,3 @@
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,6 +1,5 @@
import React from 'react';
import '@testing-library/jest-dom';
import { screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { http, HttpResponse } from 'msw';

View file

@ -1,5 +1,4 @@
import React from 'react';
import '@testing-library/jest-dom';
import type { Router as RemixRouter } from '@remix-run/router';
import { screen, waitFor } from '@testing-library/react';

View file

@ -1,7 +1,5 @@
import React from 'react';
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,7 +1,5 @@
import React from 'react';
import '@testing-library/jest-dom';
import type { Router as RemixRouter } from '@remix-run/router';
import { screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,7 +1,5 @@
import React from 'react';
import '@testing-library/jest-dom';
import type { Router as RemixRouter } from '@remix-run/router';
import {
screen,

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen, within } from '@testing-library/react';
import { renderEditMode } from './wizardTestUtils';

View file

@ -1,5 +1,4 @@
import { screen, waitFor } from '@testing-library/react';
import '@testing-library/jest-dom';
import { userEvent } from '@testing-library/user-event';
import { CREATE_BLUEPRINT, EDIT_BLUEPRINT } from '../../../../../constants';

View file

@ -1,5 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

View file

@ -1,5 +1,4 @@
import React from 'react';
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen, waitFor, within } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,4 +1,3 @@
import '@testing-library/jest-dom';
import { screen } from '@testing-library/react';
import { http, HttpResponse } from 'msw';

View file

@ -1,6 +1,5 @@
import React from 'react';
import '@testing-library/jest-dom';
import { screen, waitFor } from '@testing-library/react';
import userEvent from '@testing-library/user-event';

View file

@ -1,5 +1,3 @@
import '@testing-library/jest-dom';
import { useFlag } from '@unleash/proxy-client-react';
vi.mock('@unleash/proxy-client-react', () => ({

View file

@ -1,5 +1,3 @@
import '@testing-library/jest-dom';
import { useFlag } from '@unleash/proxy-client-react';
vi.mock('@unleash/proxy-client-react', () => ({

View file

@ -1,3 +1,4 @@
import '@testing-library/jest-dom';
import { configure } from '@testing-library/react';
import { server } from './mocks/server';