MCPcopy Create free account
hub / github.com/testing-library/react-hooks-testing-library / error

Function error

src/core/console.ts:9–14  ·  view source on GitHub ↗
(...args: Parameters<typeof originalError>)

Source from the content-addressed store, hash-verified

7 const originalError = console.error
8
9 const error = (...args: Parameters<typeof originalError>) => {
10 const message = typeof args[0] === 'string' ? args[0] : null
11 if (!message || !consoleFilters.some((filter) => filter.test(message))) {
12 originalError(...args)
13 }
14 }
15
16 console.error = error
17

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…