Module Fest.Promise

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

val let* : 'a Js.Promise.t -> ('a -> 'b Js.Promise.t) -> 'b Js.Promise.t
val test : string -> (unit -> unit Js.Promise.t) -> unit

Create a top-level test with a given name and callback function that runs the test and returns a promise.

val subtest : string -> (unit -> unit Js.Promise.t) -> unit Js.Promise.t

Create a subtest with a given name and callback function that runs the test and returns a promise. It is supposed to be used inside a test function call.