Skip to main content
Module

x/test_suite/test_suite.ts>ItDefinition

An extension of Deno's built-in test runner to add setup/teardown hooks and make it easier to organize tests in a format similar to Jasmine, Jest, and Mocha.
Latest
interface ItDefinition
implements Omit<Deno.TestDefinition, "fn">
import { type ItDefinition } from "https://deno.land/x/test_suite@0.16.1/test_suite.ts";

The options for creating an individual test case with the it function.

Properties

fn: (this: T) => void | Promise<void>
optional
suite: TestSuite<T>

The describe function returns a TestSuite representing the group of tests. If it is called within a describe calls fn, the suite will default to that parent describe calls returned TestSuite. If it is not called within a describe calls fn, the suite will default to the TestSuite representing the global group of tests.