
Run your README's code blocks as Vitest tests so an agent can't leave the docs lying
Agents change code faster than anyone rereads the docs. A 40-line Vitest file turns every TypeScript example in a README into a test, so stale docs fail the build. Fifteen minutes to set up.
8 min read
