Skip to main content

@std/testing@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score52%
Published2 years ago (0.215.0)
interface DescribeDefinition
extends Omit<Deno.TestDefinition, "fn">

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

Type Parameters

Properties

optional
fn: () => void

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.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/testing

Import symbol

import { type DescribeDefinition } from "@std/testing/bdd";
or

Import directly with a jsr specifier

import { type DescribeDefinition } from "jsr:@std/testing/bdd";