Running the koans

Most koans need nothing but Node. Download one, run it, read the assertion that fails, fix the TODO, run it again:

node 01-proto-vs-prototype.cjs

Nineteen of them render React, so they need a test runner and a DOM. Those are all of module 7, all of module 8, koans 4 and 5 of module 9, and all of module 10 except the last — their run line says pnpm koan instead of node.

One-time setup for those

npx degit semihucari-tech/dojo-starter my-dojo
cd my-dojo
pnpm install

Then drop the koan you downloaded into content/<module>/ and run it by the path shown on its page:

pnpm koan 07-recursive-components/01-component-vs-instance.tsx

Paths are relative to content/. The same command runs .cjs koans too, if you'd rather keep everything in one place.

What's in the starter

React, vitest, jsdom and Testing Library, and nothing else — no koans, no solutions. It never collects your koans as a test suite, because a koan is supposed to fail until you fix it; it runs exactly the one file you name. Source: github.com/semihucari-tech/dojo-starter.