MCPcopy
hub / github.com/react/react / resetAllUnexpectedConsoleCalls

Function resetAllUnexpectedConsoleCalls

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

Source from the content-addressed store, hash-verified

73}
74
75export function resetAllUnexpectedConsoleCalls() {
76 loggedErrors.length = 0;
77 loggedWarns.length = 0;
78 if (logMethod) {
79 loggedLogs.length = 0;
80 }
81}
82
83export function clearLogs() {
84 const logs = Array.from(loggedLogs);

Callers 2

expectTestToFailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected