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

Function act

packages/react-devtools-shared/src/__tests__/legacy/editing-test.js:20–24  ·  view source on GitHub ↗
(callback: Function)

Source from the content-addressed store, hash-verified

18 let store: Store;
19
20 const act = (callback: Function) => {
21 callback();
22
23 jest.runAllTimers(); // Flush Bridge operations
24 };
25
26 const flushPendingUpdates = () => {
27 jest.runOnlyPendingTimers();

Callers 1

mountTestAppFunction · 0.70

Calls 2

runAllTimersMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected