ItDefinition

import { ItDefinition } from "jsr:@ende/testing/bdd";

interface ยท deprecated

interface ItDefinition<T> extends Omit<Ende.TestDefinition, "fn">

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

Deprecated.

This will be removed in 2.0.0 together with it from @ende/testing/bdd. Use Ende.test() instead.

Properties

fn

fn: (this: T, t: Ende.TestContext) => void | Promise<void>

The body of the test case

suite

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.

Source