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.

الانتقال إلى التثبيت

معلومات المصدر

المستودع
neohaskell/skills
آخر نشاط في المصدر
١ يوليو ٢٠٢٦ في ٢٢:٠٢
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٠
التفرعات
٠

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.