MCPcopy
hub / github.com/facebook/react / logName

Function logName

packages/internal-test-utils/consoleMock.js:195–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 clearObservedErrors,
194) {
195 function logName() {
196 switch (consoleMethod) {
197 case 'log':
198 return 'log';
199 case 'error':
200 return 'error';
201 case 'warn':
202 return 'warning';
203 }
204 }
205
206 return function assertConsoleLog(expectedMessages, options = {}) {
207 if (__DEV__) {

Callers 2

printDiffFunction · 0.85
createLogAssertionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected