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 / many-files.ts
19 lines · 547 BRaw
1import { answersOf } from './answers-of.js'
2import { MANY_FILE_COUNT } from './many-file-count.js'
3
4/**
5 * Git's output in /work where MANY_FILE_COUNT files changed a line each:
6 * more rows than the docked list shows at once.
7 */
8export const MANY_FILES = answersOf(
9 Array.from(
10 { length: MANY_FILE_COUNT },
11 (_, at) => `1\t1\tfile${at}.ts\0`,
12 ).join(''),
13 Object.fromEntries(
14 Array.from({ length: MANY_FILE_COUNT }, (_, at) => [
15 `file${at}.ts`,
16 `@@ -1 +1 @@\n-const v = ${at}\n+const v = ${at + 1}\n`,
17 ]),
18 ),
19)