MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / render

Function render

client/utils/test-utils.tsx:6–11  ·  view source on GitHub ↗
(ui: ReactElement, store: Store)

Source from the content-addressed store, hash-verified

4import type { Store } from 'redux';
5
6function render(ui: ReactElement, store: Store) {
7 function Wrapper({ children }: { children: ReactNode }) {
8 return <Provider store={store}>{children}</Provider>;
9 }
10 return rtlRender(ui, { wrapper: Wrapper });
11}
12
13// re-export everything
14// eslint-disable-next-line import/export

Callers 15

time-line.test.tsxFile · 0.90
renderArchiveFunction · 0.90
renderCompletionModalFunction · 0.90
renderActionRowFunction · 0.90
setupFunction · 0.85
seo.test.tsxFile · 0.85
renderMapFunction · 0.85
renderWrapperFunction · 0.85

Calls

no outgoing calls

Tested by 15

renderArchiveFunction · 0.72
renderCompletionModalFunction · 0.72
renderActionRowFunction · 0.72
setupFunction · 0.68
renderMapFunction · 0.68
renderWrapperFunction · 0.68
renderWithReduxFunction · 0.68
renderWithReduxFunction · 0.68
renderDeleteModalFunction · 0.68
renderWithReduxFunction · 0.68
renderWithStoreFunction · 0.68
renderWithStoreFunction · 0.68