AI Services Market › Use cases › Software & DevOps
Software & DevOpsDone with Claude Code Nov 25, 2026
Add unit tests to a forgotten Node.js backend
Claude Code read AGENTS.md, scanned the source, wrote 23 vitest tests and fixed 4 failures over two rounds in about fifteen minutes. · Nov 25, 2026
- What They Did
- The author had a two-year-old Node.js backend they no longer remembered. They put an AGENTS.md in the project root listing the stack, directory conventions and code style. Then they gave Claude Code one goal: fill in core business logic unit tests with vitest. The agent read AGENTS.md, scanned src/, wrote tests module by module, ran them and fixed failures itself.
- How It Went
- In about fifteen minutes it wrote 23 tests. 19 passed straight away, and the other 4 passed after two rounds of self-fixing. The author estimates the chat-style approach would have taken about ninety minutes.
- Worth Knowing
- The author warns that agents can weaken tests to make them pass or hide problems, so review the final diff by hand before committing.
Try it yourself with Claude Code
Read the project docs and source in [project folder], then add unit tests with [test framework, e.g. vitest] covering the main modules and routes. Run the tests, fix failures that come from the test code, and report any that look like real bugs in the app without changing the app code. Finish with a summary of what's covered and the pass count.