Haiku

TypeScript

Plain-English TypeScript tests. Experimental.

Status: experimental

.ts.haiku (and .tsx.haiku) files describe what a TypeScript module or function should do. Haiku compiles them to <base>.test.ts files.

Generation works today; runner ergonomics (which framework — Vitest, Jest, node-test, etc.) are still settling. Expect to wire the output into your own test command for now.

Filename

<base>.ts.haiku — e.g. invoice.ts.haikuinvoice.test.ts.

Requirements

  • Node.js + your TypeScript test runner of choice on PATH

On this page