ant-design/components/tour/__tests__/demo-extend.test.ts
二货爱吃白萝卜 b62b81958b
test: Fix React 18.3 findDOMNode warning (#48958)
* fix: try to fix React 18.3 warning

* chore: back of ci

* chore: fix type

* chore: fix lint

* chore: update deps

* fix: component error

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: update deps

* test: update snapshot

* test: update snapshot

* test: update snapshot

* chore: bump version
2024-05-18 15:07:26 +08:00

15 lines
408 B
TypeScript

import { extendTest } from '../../../tests/shared/demoTest';
jest.mock('../.', () => {
const OriReact = jest.requireActual('react');
const OriTour = jest.requireActual('../.').default;
const ProxyTour = OriReact.forwardRef((props: any, ref: any) =>
OriReact.createElement(OriTour, { ...props, open: true, ref }),
);
return ProxyTour;
});
extendTest('tour', { skip: ['render-panel.tsx'] });