Skip to main content

@babia-test/bdd@0.0.2

latest
Works with
JSR Score
58%
Published
a week ago
indexItDefinition
interface ItDefinition
extends Omit<Deno.TestDefinition, "fn">
deno add @babia-test/bdd
import { type ItDefinition } from "@babia-test/bdd";
npx jsr add @babia-test/bdd
import { type ItDefinition } from "@babia-test/bdd";
yarn dlx jsr add @babia-test/bdd
import { type ItDefinition } from "@babia-test/bdd";
pnpm dlx jsr add @babia-test/bdd
import { type ItDefinition } from "@babia-test/bdd";
bunx jsr add @babia-test/bdd
import { type ItDefinition } from "@babia-test/bdd";

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

Type Parameters

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.