Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/js/lib.deno.ns.d.ts>Deno.TestDefinition

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.TestDefinition
import { type Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.ns.d.ts";
const { TestDefinition } = Deno;

Properties

fn: () => void | Promise<void>
name: string
optional
ignore: boolean
optional
sanitizeOps: boolean

Check that the number of async completed ops after the test is the same as number of dispatched ops. Defaults to true.

optional
sanitizeResources: boolean

Ensure the test case does not "leak" resources - ie. the resource table after the test has exactly the same contents as before the test. Defaults to true.