spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / tree / json-of.ts
8 lines · 270 BRaw
1/**
2 * A render tree flattened to one searchable string: its JSON, so a test
3 * finds words, theme keys and element names alike.
4 *
5 * @param tree what `$.ui.render` resolved to
6 * @returns the JSON text
7 */
8export const jsonOf = (tree: unknown) => JSON.stringify(tree)