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

Function clearErrors

packages/internal-test-utils/consoleMock.js:95–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95export function clearErrors() {
96 const errors = Array.from(loggedErrors);
97 loggedErrors.length = 0;
98 return errors;
99}
100
101export function assertConsoleLogsCleared() {
102 const logs = clearLogs();

Callers 1

assertConsoleLogsClearedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected