Skip to content

Commit bfc4fb3

Browse files
committed
test: keep react testing event behavior
1 parent 74e5eac commit bfc4fb3

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

tests/accessibility.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { fireEvent } from '@testing-library/dom';
2-
import { render } from '@testing-library/react';
1+
import { render, fireEvent } from '@testing-library/react';
32
import userEvent from '@testing-library/user-event';
43
import React from 'react';
54
import type { TabsProps } from '../src';

tests/index.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import '@testing-library/dom';
2-
import { fireEvent } from '@testing-library/dom';
3-
import { act, render, screen } from '@testing-library/react';
2+
import { act, fireEvent, render, screen } from '@testing-library/react';
43
import { spyElementPrototypes } from '@rc-component/util';
54
import React from 'react';
65
import Tabs from '../src';

tests/overflow.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { fireEvent } from '@testing-library/dom';
2-
import { act, render } from '@testing-library/react';
1+
import { act, fireEvent, render } from '@testing-library/react';
32
import { KeyCode, spyElementPrototypes } from '@rc-component/util';
43
import React from 'react';
54
import type { TabsProps } from '../src';

0 commit comments

Comments
 (0)