import * as React from 'react'; import { extendTest } from '../../../tests/shared/demoTest'; jest.mock('rc-drawer', () => { const Drawer = jest.requireActual('rc-drawer'); const MockDrawer = Drawer.default; return (props: any) => { const newProps = { ...props, open: true, }; return ; }; }); extendTest('drawer', { testingLib: true, });