describe

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

interface · deprecated

interface describe

Registers a test suite.

Deprecated.

This will be removed in 2.0.0. Use Ende.test() instead.

function · deprecated

function describe<T>(...args: DescribeArgs<T>): TestSuite<T>

Registers a test suite.

...args: DescribeArgs<T>

The test suite body.

Deprecated.

This will be removed in 2.0.0. Use Ende.test() instead.

Returns

The test suite

Example: Usage

import { describe, it } from "@ende/testing/bdd";
import { assertEquals } from "@ende/assert";

describe("example", () => {
  it("should pass", () => {
    // test case
    assertEquals(2 + 2, 4);
  });
});

namespace

namespace describe

Additional properties on the describe function.

Call signatures

Call signature

<T>(...args: DescribeArgs<T>): TestSuite<T>

Methods

only

only<T>(...args: DescribeArgs<T>): TestSuite<T>

Registers a test suite with only set to true.

ignore

ignore<T>(...args: DescribeArgs<T>): TestSuite<T>

Registers a test suite with ignore set to true.

skip

skip<T>(...args: ItArgs<T>): void

Registers a test suite with ignore set to true. Alias of .ignore().

Source