Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.0/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