Home / Function/ isLikelyAComponentStack() — react Function Reference

isLikelyAComponentStack() — react Function Reference

Architecture documentation for the isLikelyAComponentStack() function in consoleMock.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  4a201017_c5d4_ab2f_492d_01639fabcea7["isLikelyAComponentStack()"]
  9565063b_3ea2_9cbf_86d6_3ee1e66bf4cc["consoleMock.js"]
  4a201017_c5d4_ab2f_492d_01639fabcea7 -->|defined in| 9565063b_3ea2_9cbf_86d6_3ee1e66bf4cc
  f20057f4_a888_4299_3a61_2cb4bf74d7be["normalizeComponentStack()"]
  f20057f4_a888_4299_3a61_2cb4bf74d7be -->|calls| 4a201017_c5d4_ab2f_492d_01639fabcea7
  05187c53_aa67_18f7_b65b_4debec66866c["createLogAssertion()"]
  05187c53_aa67_18f7_b65b_4debec66866c -->|calls| 4a201017_c5d4_ab2f_492d_01639fabcea7
  style 4a201017_c5d4_ab2f_492d_01639fabcea7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/internal-test-utils/consoleMock.js lines 231–235

const isLikelyAComponentStack = message =>
  typeof message === 'string' &&
  (message.indexOf('<component stack>') > -1 ||
    message.includes('\n    in ') ||
    message.includes('\n    at '));

Domain

Subdomains

Frequently Asked Questions

What does isLikelyAComponentStack() do?
isLikelyAComponentStack() is a function in the react codebase, defined in packages/internal-test-utils/consoleMock.js.
Where is isLikelyAComponentStack() defined?
isLikelyAComponentStack() is defined in packages/internal-test-utils/consoleMock.js at line 231.
What calls isLikelyAComponentStack()?
isLikelyAComponentStack() is called by 2 function(s): createLogAssertion, normalizeComponentStack.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free