Skip to content

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.

TypeScript

agents-md: the truncated-read tests laid out as the formatter lays them

poteat684ffc4da0ea
diff --git a/mods/agents-md/tests/register.test.ts b/mods/agents-md/tests/register.test.ts
index 1f1e47ad..674106f1 100644
--- a/mods/agents-md/tests/register.test.ts
+++ b/mods/agents-md/tests/register.test.ts
@@ -93,7 +93,12 @@ describe('register', () => {
],
['an incomplete line range', {}, { content: '# head', numLines: 1 }, true],
['a complete read', {}, {}, false],
- ['an explicit limit', { limit: 1 }, { content: '# head', numLines: 1 }, true],
+ [
+ 'an explicit limit',
+ { limit: 1 },
+ { content: '# head', numLines: 1 },
+ true,
+ ],
[
'an explicit offset',
{ offset: 2 },
@@ -133,7 +138,11 @@ describe('register', () => {
: 'read',
}))
- const direct = await $.tool.call({ tool: 'Read', file_path: path, ...args })
+ const direct = await $.tool.call({
+ tool: 'Read',
+ file_path: path,
+ ...args,
+ })
const source = { tool: 'Read', file_path: `${dir}/source.ts` } as const
const after = await $.tool.call(source)
const repeated = await $.tool.call(source)