MCPcopy Create free account
hub / github.com/testing-library/react-testing-library / isLikelyAComponentStack

Function isLikelyAComponentStack

tests/toWarnDev.js:96–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 let caughtError
95
96 const isLikelyAComponentStack = message =>
97 typeof message === 'string' &&
98 (message.includes('\n in ') || message.includes('\n at '))
99
100 const consoleSpy = (format, ...args) => {
101 // Ignore uncaught errors reported by jsdom

Callers 1

consoleSpyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…