MCPcopy
hub / github.com/nytimes/react-tracking / TestDefaults

Function TestDefaults

src/__tests__/hooks.test.js:26–30  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

24
25 it('defaults mostly everything', () => {
26 function TestDefaults({ children }) {
27 const { Track } = useTracking({}, { process: () => null });
28
29 return <Track>{children}</Track>;
30 }
31
32 const Child = () => {
33 const { trackEvent } = useTracking();

Callers

nothing calls this directly

Calls 1

useTrackingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…