Run any Skill in Manus
with one click
with one click
Run any Skill in Manus with one click
Get Startedeffect-testing
Use when writing tests for Effect.ts code
Stars3
Forks0
UpdatedFebruary 14, 2026 at 12:25
SKILL.md
readonlyMenu
Use when writing tests for Effect.ts code
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".
Use when creating routes in effect-start applications using Route and HyperRoute APIs.
Use when writing Zig code. Contains Zig 0.15 API changes and patterns.
| name | effect-testing |
| description | Use when writing tests for Effect.ts code |
test.it("should fail with ValidationError", async () => {
const program = Effect.gen(function* () {
const result = yield* Effect.exit(operation("invalid"))
if (result._tag === "Failure") {
test.expect(ValidationError.isValidationError(result.cause)).toBe(true)
const error = result.cause as ValidationError
test.expect(error.field).toBe("input")
} else {
test.fail("Expected operation to fail")
}
})
await Effect.runPromise(program)
})
import * as TestClock from "effect/TestClock"
test.it("should handle delay", async () => {
const program = Effect.gen(function* () {
const fiber = yield* Effect.fork(
Effect.gen(function* () {
yield* Effect.sleep("5 seconds")
return "completed"
}),
)
// Advance test clock (not wall clock)
yield* TestClock.adjust("5 seconds")
const result = yield* Effect.Fiber.join(fiber)
return result
})
const result = await Effect.runPromise(program)
test.expect(result).toBe("completed")
})
tsc # Type check
bun test <file> # Test specific file
bun test # All tests