MCPcopy
hub / github.com/callstack/react-native-testing-library / excludeConsoleMessage

Function excludeConsoleMessage

src/test-utils/console.ts:3–12  ·  view source on GitHub ↗
(logFn: (...args: unknown[]) => void, excludeMessage: string)

Source from the content-addressed store, hash-verified

1import { format } from 'util';
2
3export function excludeConsoleMessage(logFn: (...args: unknown[]) => void, excludeMessage: string) {
4 return (...args: unknown[]) => {
5 const message = format(...args);
6 if (message.includes(excludeMessage)) {
7 return;
8 }
9
10 logFn(...args);
11 };
12}

Callers 3

suspense.test.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…