MCPcopy
hub / github.com/getsentry/sentry / createWrapper

Function createWrapper

static/app/components/modals/featureTourModal.spec.tsx:27–45  ·  view source on GitHub ↗
(props = {})

Source from the content-addressed store, hash-verified

25 let onCloseModal!: jest.Mock;
26
27 const createWrapper = (props = {}) =>
28 render(
29 <Fragment>
30 <GlobalModal />
31 <FeatureTourModal
32 steps={steps}
33 onAdvance={onAdvance}
34 onCloseModal={onCloseModal}
35 doneUrl="/done"
36 {...props}
37 >
38 {({showModal}) => (
39 <a href="#" onClick={showModal} data-test-id="reveal">
40 Open
41 </a>
42 )}
43 </FeatureTourModal>
44 </Fragment>
45 );
46
47 async function clickModal() {
48 await userEvent.click(screen.getByTestId('reveal'));

Callers 1

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected