std/testing/bdd.ts

Deno standard library
Go to Latest
interface ItDefinition
implements Omit<Deno.TestDefinition, "fn">
import { type ItDefinition } from "https://deno.land/std@0.145.0/testing/bdd.ts?s=ItDefinition";

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

Properties

fn: (this: T, t: Deno.TestContext) => void | Promise<void>[src]
optional
suite: TestSuite<T>
[src]

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.

import ItDefinition
import { ItDefinition } from "https://deno.land/std@0.145.0/testing/bdd.ts?s=ItDefinition";