Creates a TestContext for testing IO effects with mocked services.
const ctx = TestContext.make() .withService(Logger, mockLogger) .withService(Database, mockDb)const result = await ctx.run(myProgram) Copy
const ctx = TestContext.make() .withService(Logger, mockLogger) .withService(Database, mockDb)const result = await ctx.run(myProgram)
Creates a new empty TestContext
Creates a TestContext with a TestClock already provided
Creates a TestContext for testing IO effects with mocked services.
Example