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.

Quellinformationen

Repository
UsefulSoftwareCo/executor
Letzte Quellaktivität
5. Mai 2026 um 23:06
Erkannte Sprache von SKILL.md
Englisch
Sterne
4.188
Forks
371

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
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" }); ```
Auf GitHub ansehen