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.

Informations de source

Dépôt
UsefulSoftwareCo/executor
Dernière activité de la source
5 mai 2026 à 23:06
Langue détectée de SKILL.md
anglais
Étoiles
4 293
Forks
390

Options d'installation

Le prompt qui vérifie d'abord la source est sélectionné par défaut. Vous pouvez passer à une commande directe ou télécharger une copie locale.

Vérifiez les fichiers source

Lisez SKILL.md et les fichiers associés affichés par SkillsMP avant de décider de l'installer.

Affichage de SKILL.md

SKILL.md
Instructions source · Aperçu en lecture seule
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" }); ```
Voir sur GitHub