captureStackTrace() — react Function Reference
Architecture documentation for the captureStackTrace() function in setupTests.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 7e533bd3_1ec6_32b5_d976_b320bece8b80["captureStackTrace()"] 01d850dc_3214_54c0_e858_c1194dd15ff0["setupTests.js"] 7e533bd3_1ec6_32b5_d976_b320bece8b80 -->|defined in| 01d850dc_3214_54c0_e858_c1194dd15ff0 909084f5_b0b3_1893_708d_ff31a1d296c3["global()"] 909084f5_b0b3_1893_708d_ff31a1d296c3 -->|calls| 7e533bd3_1ec6_32b5_d976_b320bece8b80 style 7e533bd3_1ec6_32b5_d976_b320bece8b80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/jest/setupTests.js lines 121–129
const captureStackTrace = function (error, ...args) {
return OriginalError.captureStackTrace.call(
this,
originalErrorInstances.get(error) ||
// Sometimes this wrapper receives an already-unproxied instance.
error,
...args
);
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does captureStackTrace() do?
captureStackTrace() is a function in the react codebase, defined in scripts/jest/setupTests.js.
Where is captureStackTrace() defined?
captureStackTrace() is defined in scripts/jest/setupTests.js at line 121.
What calls captureStackTrace()?
captureStackTrace() is called by 1 function(s): global.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free