MCPcopy
hub / github.com/gitify-app/gitify / renderWithContext

Function renderWithContext

src/renderer/context/App.test.tsx:33–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32// Helper to render the context
33const renderWithContext = () => {
34 let context!: AppContextState;
35
36 const CaptureContext = () => {
37 context = useAppContext();
38 return null;
39 };
40
41 renderWithProviders(
42 <AppProvider>
43 <CaptureContext />
44 </AppProvider>,
45 );
46
47 return () => context;
48};
49
50describe('renderer/context/App.tsx', () => {
51 const fetchNotificationsMock = vi.fn();

Callers 1

App.test.tsxFile · 0.85

Calls 1

renderWithProvidersFunction · 0.90

Tested by

no test coverage detected