MCPcopy
hub / github.com/testing-library/react-testing-library / setIsReactActEnvironment

Function setIsReactActEnvironment

src/act-compat.js:28–30  ·  view source on GitHub ↗
(isReactActEnvironment)

Source from the content-addressed store, hash-verified

26}
27
28function setIsReactActEnvironment(isReactActEnvironment) {
29 getGlobalThis().IS_REACT_ACT_ENVIRONMENT = isReactActEnvironment
30}
31
32function getIsReactActEnvironment() {
33 return getGlobalThis().IS_REACT_ACT_ENVIRONMENT

Callers 1

withGlobalActEnvironmentFunction · 0.85

Calls 1

getGlobalThisFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…