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

x/hex/src/lib/stdx/mod.ts>testing.bdd.ItDefinition

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface testing.bdd.ItDefinition
implements Omit<Deno.TestDefinition, "fn">
Re-export
import { type testing } from "https://deno.land/x/hex@0.6.5/src/lib/stdx/mod.ts";
const { ItDefinition } = testing.bdd;

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

Properties

fn: (this: T, t: Deno.TestContext) => 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.