MCPcopy
hub / github.com/preactjs/preact / act.test.jsx

File act.test.jsx

test-utils/test/shared/act.test.jsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { options, createElement, render } from 'preact';
2import { useEffect, useReducer, useState } from 'preact/hooks';
3import { act } from 'preact/test-utils';
4import { setupScratch, teardown } from '../../../test/_util/helpers';

Callers

nothing calls this directly

Calls 12

setupScratchFunction · 0.90
teardownFunction · 0.90
actFunction · 0.90
renderFunction · 0.90
delayFunction · 0.85
tryRenderBrokenFunction · 0.85
renderWorkingFunction · 0.85
tryNestedRenderBrokenFunction · 0.85
renderBrokenAsyncFunction · 0.85
renderBrokenEffectFunction · 0.85
createEventFunction · 0.70
requestAnimationFrameMethod · 0.65

Tested by

no test coverage detected