Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fresh_testing_library/deps/testing-library.ts>act

Utilities for testing fresh apps
Latest
variable act
import { act } from "https://deno.land/x/fresh_testing_library@0.13.1/deps/testing-library.ts";

Simply calls preact/test-utils.act(cb)

If that's not available (older version of preact) then it simply calls the given callback immediately

type

preactAct extends undefined ? (callback: () => void) => void : preactAct