import { Do } from '../stdlib/effect' import { PutStringLn } from '../stdlib/stdio' import { SetEvalEnvironment } from '../stdlib/sys' import { Test, Assert } from '../stdlib/test' import { Equals, Not } from '../stdlib/util' type testSomeStuff = Do<[ PutStringLn<"Some Stuff">, Test<"should do some stuff", [ Assert>, Assert>>, ]>, Test<"bing bong, bing bing bong", [ Assert>, ]>, ]> type testSomeMoreStuff = Do<[ PutStringLn<"Other stuff?">, Test<"should do some other stuff", [ Assert>, ]>, // Test<"this'll fail fo sho", [ // Assert>, // ]>, ]> export type main = [ // Update env to node with test helpers SetEvalEnvironment<'test.node'>, PutStringLn<"=== Running tests... ===\n">, testSomeStuff, testSomeMoreStuff, ]