Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/redis/vendor/https/deno.land/std/testing/bdd.ts>DescribeDefinition

πŸ¦• Redis client for Deno πŸ•
Very Popular
Go to Latest
interface DescribeDefinition
implements Omit<Deno.TestDefinition, "fn">
Re-export
import { type DescribeDefinition } from "https://deno.land/x/redis@v0.27.0/vendor/https/deno.land/std/testing/bdd.ts";

The options for creating a test suite with the describe function.

Properties

optional
fn: () => void
optional
suite: TestSuite<T>

The describe function returns a TestSuite representing the group of tests. If describe is called within another describe calls fn, the suite will default to that parent describe calls returned TestSuite. If describe is not called within another describe calls fn, the suite will default to the TestSuite representing the global group of tests.

optional
beforeAll: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]

Run some shared setup before all of the tests in the suite.

optional
afterAll: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]

Run some shared teardown after all of the tests in the suite.

optional
beforeEach: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]

Run some shared setup before each test in the suite.

optional
afterEach: ((this: T) => void | Promise<void>) | ((this: T) => void | Promise<void>)[]

Run some shared teardown after each test in the suite.