MCPcopy
hub / github.com/mitmproxy/mitmproxy / render

Function render

web/src/js/__tests__/test-utils.tsx:12–19  ·  view source on GitHub ↗
(ui, { store = TStore(), ...renderOptions } = {})

Source from the content-addressed store, hash-verified

10export { userEvent };
11
12export function render(ui, { store = TStore(), ...renderOptions } = {}) {
13 function Wrapper({ children }: { children: React.ReactNode }) {
14 return <Provider store={store}>{children}</Provider>;
15 }
16
17 const ret = rtlRender(ui, { wrapper: Wrapper, ...renderOptions });
18 return { ...ret, store };
19}

Callers 15

HeaderSpec.tsxFile · 0.90
ProxyAppSpec.tsxFile · 0.90
FlowTableSpec.tsxFile · 0.90
CommandBarSpec.tsxFile · 0.90
FlowViewSpec.tsxFile · 0.90
EventLogSpec.tsxFile · 0.90
testFlowColumnFunction · 0.90
FlowRowSpec.tsxFile · 0.90
AutoScrollSpec.tsxFile · 0.90
EventListSpec.tsxFile · 0.90
ModalSpec.tsxFile · 0.90

Calls 1

TStoreFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…