ConformanceRunner

The two functions a conformance suite needs from a test runner. Vitest, Jest, Mocha and node:test all supply them under these names, so a suite is registered by passing { describe, it }.

import type { ConformanceRunner } from '@threadplane/core/testing';

Declaration

export interface ConformanceRunner  {
  describe(name: string, body: () => void): void;
  it(name: string, body: () => void | Promise<void>): void;
}

Members

describe · overload 1

describe(name: string, body: () => void): void;

Parameters

name · required
string
body · required
() => void

Returns

void

it · overload 1

it(name: string, body: () => void | Promise<void>): void;

Parameters

name · required
string
body · required
() => void | Promise<void>

Returns

void