在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用effect-testing
星标3
分支0
更新时间2026年2月14日 12:25
Use when writing tests for Effect.ts code
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Use when writing tests for Effect.ts code
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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