wrdn-effect-vitest-tests
UsefulSoftwareCo/executor/.agents/skills/wrdn-effect-vitest-tests/SKILL.md
Keep tests deterministic and Effect-aware. Use when lint flags direct vitest imports or conditional assertions inside tests.
Skill4.1k starsChanged 5 months ago
What's in it
- Fix Shape
- Bad
- Good
Tools it asks for
- Read
- Grep
- Glob
- Bash
---
name: wrdn-effect-vitest-tests
description: Keep tests deterministic and Effect-aware. Use when lint flags direct vitest imports or conditional assertions inside tests.
allowed-tools: Read Grep Glob Bash
---
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/utils` when needed.
- Do not import from raw `vitest` except in config or tooling files.
- Do not put `expect(...)` behind `if`, ternary, logical, or switch branches.
- Split conditional behavior into separate tests, or assert the branch condition and expected value explicitly.
## Bad
```ts
if (result.ok) {
expect(result.value).toBe("x");
}
```
## Good
```ts
expect(result).toEqual({ ok: true, value: "x" });
```
More agent context in UsefulSoftwareCo/executor
17 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- stack.agents/skills/stack/SKILL.md
- wrdn-effect-atom-optimistic.agents/skills/wrdn-effect-atom-optimistic/SKILL.md
- wrdn-effect-atom-reactivity-keys.agents/skills/wrdn-effect-atom-reactivity-keys/SKILL.md
- wrdn-effect-promise-exit.agents/skills/wrdn-effect-promise-exit/SKILL.md
- wrdn-effect-raw-fetch-boundary.agents/skills/wrdn-effect-raw-fetch-boundary/SKILL.md
- wrdn-effect-schema-boundaries.agents/skills/wrdn-effect-schema-boundaries/SKILL.md
- wrdn-effect-schema-inferred-types.agents/skills/wrdn-effect-schema-inferred-types/SKILL.md
- wrdn-effect-typed-errors.agents/skills/wrdn-effect-typed-errors/SKILL.md
- wrdn-effect-value-inferred-types.agents/skills/wrdn-effect-value-inferred-types/SKILL.md
- wrdn-package-boundaries.agents/skills/wrdn-package-boundaries/SKILL.md
- wrdn-typescript-type-safety.agents/skills/wrdn-typescript-type-safety/SKILL.md
- emulate.claude/skills/emulate/SKILL.md
- prod-telemetry.claude/skills/prod-telemetry/SKILL.md
- self-contained-modals.claude/skills/self-contained-modals/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

