Wrdn Effect Vitest Tests
Testing & Qualitywrdn-effect-vitest-testsWrdn Effect Vitest Tests is an Agent Skill for testing & quality published in the UsefulSoftwareCo/executor repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Keep tests deterministic and Effect-aware. Use when lint flags direct vitest imports or conditional assertions inside tests.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/UsefulSoftwareCo/executor/blob/HEAD/.agents/skills/wrdn-effect-vitest-tests/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/wrdn-effect-vitest-tests, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Use @effect/vitest for tests in this repo.
Fix Shape
- Import
describe,it,expect, and helpers from@effect/vitest. - Import utility helpers from
@effect/vitest/utilswhen needed. - Do not import from raw
vitestexcept in config or tooling files. - Do not put
expect(...)behindif, ternary, logical, or switch branches. - Split conditional behavior into separate tests, or assert the branch condition and expected value explicitly.
Bad
if (result.ok) {
expect(result.value).toBe("x");
}
Good
expect(result).toEqual({ ok: true, value: "x" });