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

Function createWrapper

static/app/components/breadcrumbs.spec.tsx:6–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5describe('Breadcrumbs', () => {
6 function createWrapper() {
7 return render(
8 <Breadcrumbs
9 crumbs={[
10 {
11 label: 'Test 1',
12 to: '/test1',
13 },
14 {
15 label: 'Test 2',
16 to: '/test2',
17 },
18 {
19 label: 'Test 3',
20 to: null,
21 },
22 ]}
23 />
24 );
25 }
26
27 it('returns null when 0 crumbs', () => {
28 const {container} = render(<Breadcrumbs crumbs={[]} />);

Callers 1

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected