fulcro-spec-tdd
Installation
SKILL.md
Requirements: Fulcro 3.9.0+, Fulcro Spec 3.2.0+, Guardrails 1.2.16+
Core philosophy: testability is a design quality. Code that is hard to test needs refactoring.
Procedure
- Write a function with
>defn - Identify all behaviors (decision points)
- Write a test for EACH behavior using fulcro-spec
- VERIFY each test by temporarily breaking that behavior
- SEAL with
:coversmetadata (mandatory)
Setup
;; Source namespace
(ns your.namespace
(:require [com.fulcrologic.guardrails.malli.core :refer [>defn >def => ? |]]))