From fdfa3dd6dd04f7ddf1810cd5695eb4b0a775151a Mon Sep 17 00:00:00 2001 From: Nathan Franklin Date: Mon, 11 Nov 2024 14:54:03 -0600 Subject: [PATCH] Update act import --- react/src/components/AssetsPanel/AssetsPanel.test.tsx | 4 ++-- react/src/components/DeleteMapModal/DeleteMapModal.test.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/react/src/components/AssetsPanel/AssetsPanel.test.tsx b/react/src/components/AssetsPanel/AssetsPanel.test.tsx index c246354f..f39c6990 100644 --- a/react/src/components/AssetsPanel/AssetsPanel.test.tsx +++ b/react/src/components/AssetsPanel/AssetsPanel.test.tsx @@ -1,5 +1,5 @@ -import React from 'react'; -import { render, screen, fireEvent, act } from '@testing-library/react'; +import React, { act } from 'react'; +import { render, screen, fireEvent } from '@testing-library/react'; import AssetsPanel from './AssetsPanel'; import { featureCollection } from '@hazmapper/__fixtures__/featuresFixture'; import { useFeatures } from '@hazmapper/hooks'; diff --git a/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx b/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx index 7e68d5e9..d9fdf73b 100644 --- a/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx +++ b/react/src/components/DeleteMapModal/DeleteMapModal.test.tsx @@ -1,7 +1,6 @@ -import React from 'react'; +import React, { act } from 'react'; import { render, screen } from '@testing-library/react'; import { BrowserRouter as Router } from 'react-router-dom'; -import { act } from 'react-dom/test-utils'; import { QueryClient, QueryClientProvider } from 'react-query'; import DeleteMapModal from './DeleteMapModal'; import { Provider } from 'react-redux';