You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
545 B

import * as React from 'react';
import { extendTest } from '../../../tests/shared/demoTest';
vi.mock('rc-drawer', async () => {
const Drawer = await vi.importActual<typeof import('rc-drawer')>('rc-drawer');
const MockDrawer = Drawer.default;
return {
default: (props: any) => {
const newProps = {
...props,
open: true,
getContainer: false,
maskMotion: null,
motion: null,
};
return <MockDrawer {...newProps} />;
},
};
});
extendTest('drawer', {
testingLib: true,
});