Module Fest

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

val test : string -> (unit -> unit) -> unit

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

module Promise : sig ... end

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

val expect : assertion

The node:assert/strict module object

val ok : bool -> assertion -> unit

Tests if the given value is true

val equal : 'a -> 'a -> assertion -> unit

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

val deep_equal : 'a -> 'a -> assertion -> unit

Tests for deep strict equality between the actual and expected parameters

val deepEqual : 'a -> 'a -> assertion -> unit

Alias for deep_equal