MCPcopy Index your code
hub / github.com/testing-library/react-hooks-testing-library / skipAutoCleanup

Function skipAutoCleanup

src/core/cleanup.ts:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21function skipAutoCleanup() {
22 try {
23 return !!process.env.RHTL_SKIP_AUTO_CLEANUP
24 } catch {
25 // falling back in the case that process.env.RHTL_SKIP_AUTO_CLEANUP cannot be accessed (e.g. browser environment)
26 return false
27 }
28}
29
30function autoRegisterCleanup() {
31 // Automatically registers cleanup in supported testing frameworks

Callers 1

autoRegisterCleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…