Skip to main content

write-unit-tests

Writes RED-first Hspec UNIT specs for the three pure NeoHaskell building blocks in isolation — Decider (a command's decide), Projection (a query's combine), and Outbound (an integration's handleEvent) — using the Test testlib, Decider.runDecision, and Auth.emptyContext. This is step 3 of the outside-in cycle, before the matching implement- command / implement-query / implement-integration. Use whenever asked to write unit tests, write a spec, test a command decision, test a query projection, or test an outbound handler for a slice — even if the user says only 'add tests' or 'write a spec'. Do NOT use for the in-domain Acceptance or Property/QuickCheck specs that fold whole event streams (write-feature-tests), the outer Hurl HTTP e2e (write-hurl-e2e), or implementing the bodies under test. Assumes neohaskell/neo#2 so neo test compiles the suite.

Aller à l'installation

Informations de source

Dépôt
neohaskell/skills
Dernière activité de la source
1 juillet 2026 à 22:02
Langue détectée de SKILL.md
anglais
Étoiles
0
Forks
0

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.