Module Fest.Promise

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

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

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

let subtest: string => (unit => Js.Promise.t(unit)) => Js.Promise.t(unit);

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.