Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/levo/lib/lib.deno_runtime.d.ts>Deno.TestDefinition

Server side rendering with The Elm Architecture in Deno
Latest
interface Deno.TestDefinition
import { type Deno } from "https://deno.land/x/levo@v0.0.27/lib/lib.deno_runtime.d.ts";
const { TestDefinition } = Deno;

Properties

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

If at lease one test has only set to true, only run tests that have only set to true and fail the test suite.

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.