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

Function isLikelyAComponentStack

packages/internal-test-utils/consoleMock.js:184–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184const isLikelyAComponentStack = message =>
185 typeof message === 'string' &&
186 (message.indexOf('<component stack>') > -1 ||
187 message.includes('\n in ') ||
188 message.includes('\n at '));
189
190export function createLogAssertion(
191 consoleMethod,

Callers 2

normalizeComponentStackFunction · 0.70
createLogAssertionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected