Skip to content

Commit

Permalink
fix: replace import react-dom/test-utils with react
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari committed Jun 6, 2024
1 parent 480a0ca commit fb6540b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/react/src/components/ComboBox/ComboBox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {
generateGenericItem,
} from '../ListBox/test-helpers';
import ComboBox from '../ComboBox';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { Slug } from '../Slug';

const findInputNode = () => screen.getByRole('combobox');
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/components/Tabs/Tabs-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Tabs, Tab, TabPanel, TabPanels, TabList } from './Tabs';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import * as hooks from '../../internal/useMatchMedia';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import { render } from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { HeaderContainer } from '../';

describe('HeaderContainer', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/src/internal/__tests__/useMatchMedia-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

import { render } from '@testing-library/react';
import React from 'react';
import { act } from 'react-dom/test-utils';
import { act } from 'react';

import { useMatchMedia } from '../useMatchMedia';

describe('useMatchMedia', () => {
Expand Down

0 comments on commit fb6540b

Please sign in to comment.