Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method TestSuiteInternal.setHook
import { TestSuiteInternal } from "https://deno.land/std@0.163.0/testing/_test_suite.ts";

This is used internally to add hooks to a test suite.

Parameters

suite: TestSuiteInternal<T>
name: HookNames
fn: (this: T) => void | Promise<void>