Skip to main content

wrdn-effect-vitest-tests

Keep tests deterministic and Effect-aware. Use when lint flags direct vitest imports or conditional assertions inside tests.

Source facts

Repository
UsefulSoftwareCo/executor
Last source activity
May 5, 2026 at 23:06
Detected SKILL.md language
English
Stars
4,000
Forks
336

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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" }); ```
View on GitHub