assertYieldsWereCleared() — react Function Reference
Architecture documentation for the assertYieldsWereCleared() function in reactTestMatchers.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 0afb501f_cf11_021f_0877_d8902a2098c6["assertYieldsWereCleared()"] 3d868c1f_a0e6_ed76_347e_51c4c370a7b5["reactTestMatchers.js"] 0afb501f_cf11_021f_0877_d8902a2098c6 -->|defined in| 3d868c1f_a0e6_ed76_347e_51c4c370a7b5 5cb4ccde_ac4d_2440_88a3_2b9f5a5d3c26["toMatchRenderedOutput()"] 5cb4ccde_ac4d_2440_88a3_2b9f5a5d3c26 -->|calls| 0afb501f_cf11_021f_0877_d8902a2098c6 style 0afb501f_cf11_021f_0877_d8902a2098c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
scripts/jest/matchers/reactTestMatchers.js lines 23–33
function assertYieldsWereCleared(Scheduler, caller) {
const actualYields = Scheduler.unstable_clearLog();
if (actualYields.length !== 0) {
const error = Error(
'The event log is not empty. Call assertLog(...) first.'
);
Error.captureStackTrace(error, caller);
throw error;
}
assertConsoleLogsCleared();
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does assertYieldsWereCleared() do?
assertYieldsWereCleared() is a function in the react codebase, defined in scripts/jest/matchers/reactTestMatchers.js.
Where is assertYieldsWereCleared() defined?
assertYieldsWereCleared() is defined in scripts/jest/matchers/reactTestMatchers.js at line 23.
What calls assertYieldsWereCleared()?
assertYieldsWereCleared() is called by 1 function(s): toMatchRenderedOutput.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free