cratis-specs-typescript
Step-by-step guidance for writing TypeScript specs in Cratis using BDD-style Specification by Example — the given()/describe/it pattern, for_/when_/ folder hierarchy, reusable context classes, Sinon mocking, and Chai assertions. Use whenever writing TypeScript specs or tests, creating spec files/folders, using the given() helper, mocking with sinon.createStubInstance or sinon.stub, asserting with Chai .should, or understanding how yarn test runs specs.
Pinned to revision 8356298f1c6e, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/cratis-specs-typescript/SKILL.md
- skills/cratis-specs-typescript/references/typescript-patterns.md
Every link opens the file at its source, pinned to the revision this page describes.