Skip to content

ConformanceTestApi

Defined in: src/storage/testing/conformance.ts:34

The injected test API: pass { describe, test, expect } from your runner.

describe(name, fn): void;

Defined in: src/storage/testing/conformance.ts:36

Group tests.

Parameter Type
name string
fn () => void

void


expect(actual): ConformanceMatchers;

Defined in: src/storage/testing/conformance.ts:40

Make an assertion.

Parameter Type
actual unknown

ConformanceMatchers


test(
name,
fn,
timeout?
): void;

Defined in: src/storage/testing/conformance.ts:38

Register one test (the third argument is the timeout in ms).

Parameter Type
name string
fn () => Promise<void>
timeout? number

void