Module Fest

Bindings for functions from node:test and node:assert/strict modules

let test: string => (unit => unit) => unit;

Create a test with a given name and callback function that runs the test

module Promise: { ... };

This promise-based module is needed for nested tests, see https://nodejs.org/api/test.html#subtests

type assertion;

Abstract type for the node:assert/strict module

let expect: assertion;

The node:assert/strict module object

let ok: bool => assertion => unit;

Tests if the given value is true

let equal: 'a => 'a => assertion => unit;

Tests strict equality between the actual and expected parameters as determined by Object.is()

let deep_equal: 'a => 'a => assertion => unit;

Tests for deep strict equality between the actual and expected parameters

let deepEqual: 'a => 'a => assertion => unit;

Alias for deep_equal