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

Function clearLogs

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

Source from the content-addressed store, hash-verified

81}
82
83export function clearLogs() {
84 const logs = Array.from(loggedLogs);
85 loggedLogs.length = 0;
86 return logs;
87}
88
89export function clearWarnings() {
90 const warnings = Array.from(loggedWarns);

Callers 1

assertConsoleLogsClearedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected