frrdinand 3 hours ago

Test suites tend to become less legible as they grow. At some point, you wonder where to write a new test or if a case might not be already covered. This gets worse with AI agents that contribute code you never wrote.

speccharts reads your test files (JS or TS) and generates Mermaid flowcharts that give a bird's eye view of test suites. describe blocks render as nodes, it and test blocks render as leaves.

It works especially well with deeply nested test suites, which can help to convey ramified logic.