suite()
Test entrypoint. When test module is run (not imported),
tests in the suite run, and a report is printed.
Uncaught errors fail the test, unless they have the todo property set.
Use todo('...description...') to scaffold future test cases and specify
the expected shape of your project.
To define your tests: [the], [has], [is], [equals], [includes];
or pass functions which take (lastValue, context).
Example:
import { suite, the, todo, ok, equal } from '@hackbg/fadroma'; export default suite(import.meta, 'my module', 'strings are TODOs', the('empty tests are TODOs'), the('substeps do not throw', context => { ok(true, "unary assertion") }, the('tests can nest', context => { equal(1, 1, "binary assertion") })));