diff --git a/frontend/tests/components/search/SearchBar.test.tsx b/frontend/tests/components/search/SearchBar.test.tsx index 1bca58a25..1a42c3ce3 100644 --- a/frontend/tests/components/search/SearchBar.test.tsx +++ b/frontend/tests/components/search/SearchBar.test.tsx @@ -1,7 +1,7 @@ import "@testing-library/jest-dom"; -import { fireEvent, render, screen } from "@testing-library/react"; - +import { fireEvent } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchBar from "src/components/search/SearchBar"; import { axe } from "jest-axe"; diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterAccordion.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterAccordion.test.tsx index a73c42429..c70c31394 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterAccordion.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterAccordion.test.tsx @@ -1,6 +1,7 @@ import "@testing-library/jest-dom/extend-expect"; import { axe } from "jest-axe"; -import { fireEvent, render, screen } from "@testing-library/react"; +import { fireEvent } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchFilterAccordion, { FilterOption, diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterCheckbox.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterCheckbox.test.tsx index b5e7c2f1f..2d3bbdcd4 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterCheckbox.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterCheckbox.test.tsx @@ -1,6 +1,7 @@ import "@testing-library/jest-dom"; -import { fireEvent, render, screen, waitFor } from "@testing-library/react"; +import { fireEvent, waitFor } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchFilterCheckbox from "src/components/search/SearchFilterAccordion/SearchFilterCheckbox"; diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SearchFilterSection.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SearchFilterSection.test.tsx index 52571ed6b..38265b160 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SearchFilterSection.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SearchFilterSection.test.tsx @@ -1,6 +1,7 @@ import "@testing-library/jest-dom"; -import { fireEvent, render, screen } from "@testing-library/react"; +import { fireEvent } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchFilterSection from "src/components/search/SearchFilterAccordion/SearchFilterSection/SearchFilterSection"; diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkCount.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkCount.test.tsx index 0b00fe4f7..f6d8dfe21 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkCount.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkCount.test.tsx @@ -1,6 +1,6 @@ import "@testing-library/jest-dom"; -import { render, screen } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SectionLinkCount from "../../../../../src/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkCount"; diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkLabel.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkLabel.test.tsx index 66fed544a..f5d2688ef 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkLabel.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterSection/SectionLinkLabel.test.tsx @@ -1,6 +1,6 @@ import "@testing-library/jest-dom"; -import { render, screen } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import { FilterOption } from "../../../../../src/components/search/SearchFilterAccordion/SearchFilterAccordion"; import React from "react"; diff --git a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterToggleAll.test.tsx b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterToggleAll.test.tsx index 2cfb11435..c588dcdbc 100644 --- a/frontend/tests/components/search/SearchFilterAccordion/SearchFilterToggleAll.test.tsx +++ b/frontend/tests/components/search/SearchFilterAccordion/SearchFilterToggleAll.test.tsx @@ -1,6 +1,7 @@ import "@testing-library/jest-dom"; -import { fireEvent, render, screen } from "@testing-library/react"; +import { fireEvent} from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchFilterToggleAll from "src/components/search/SearchFilterAccordion/SearchFilterToggleAll"; diff --git a/frontend/tests/components/search/SearchOpportunityStatus.test.tsx b/frontend/tests/components/search/SearchOpportunityStatus.test.tsx index 1be71a5ad..669fcf639 100644 --- a/frontend/tests/components/search/SearchOpportunityStatus.test.tsx +++ b/frontend/tests/components/search/SearchOpportunityStatus.test.tsx @@ -1,6 +1,7 @@ import "@testing-library/jest-dom/extend-expect"; import { axe } from "jest-axe"; -import { fireEvent, render, screen } from "@testing-library/react"; +import { fireEvent } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchOpportunityStatus from "src/components/search/SearchOpportunityStatus"; diff --git a/frontend/tests/components/search/SearchPagination.test.tsx b/frontend/tests/components/search/SearchPagination.test.tsx index c4ee7c8e8..229fa46d9 100644 --- a/frontend/tests/components/search/SearchPagination.test.tsx +++ b/frontend/tests/components/search/SearchPagination.test.tsx @@ -1,7 +1,7 @@ /* eslint-disable jest/no-commented-out-tests */ import "@testing-library/jest-dom/extend-expect"; import { axe } from "jest-axe"; -import { render } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchPagination from "src/components/search/SearchPagination"; diff --git a/frontend/tests/components/search/SearchResultsHeader.test.tsx b/frontend/tests/components/search/SearchResultsHeader.test.tsx index 901ca3a94..006c9a937 100644 --- a/frontend/tests/components/search/SearchResultsHeader.test.tsx +++ b/frontend/tests/components/search/SearchResultsHeader.test.tsx @@ -1,4 +1,4 @@ -import { render, screen } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; import React from "react"; import SearchResultsHeader from "src/components/search/SearchResultsHeader"; diff --git a/frontend/tests/components/search/SearchResultsListItem.test.tsx b/frontend/tests/components/search/SearchResultsListItem.test.tsx index a1e4f7044..eaaa4bc45 100644 --- a/frontend/tests/components/search/SearchResultsListItem.test.tsx +++ b/frontend/tests/components/search/SearchResultsListItem.test.tsx @@ -1,5 +1,4 @@ -import { render, screen } from "@testing-library/react"; - +import { render, screen } from "tests/react-utils"; import { Opportunity } from "src/types/search/searchResponseTypes"; import React from "react"; import SearchResultsListItem from "src/components/search/SearchResultsListItem"; diff --git a/frontend/tests/components/search/SearchSortBy.test.tsx b/frontend/tests/components/search/SearchSortBy.test.tsx index e53103ac0..260734aef 100644 --- a/frontend/tests/components/search/SearchSortBy.test.tsx +++ b/frontend/tests/components/search/SearchSortBy.test.tsx @@ -1,5 +1,7 @@ import { axe } from "jest-axe"; -import { fireEvent, render, screen } from "@testing-library/react"; +import { fireEvent } from "@testing-library/react"; +import { render, screen } from "tests/react-utils"; + import React from "react"; import SearchSortBy from "src/components/search/SearchSortBy"; import QueryProvider from "src/app/[locale]/search/QueryProvider";