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
diff tests: the walk stops at the last file
poteat0fdc7b2f1770
diff --git a/mods/diff/tests/views.test.ts b/mods/diff/tests/views.test.tsindex 077f5c32..91c8e9ff 100644--- a/mods/diff/tests/views.test.ts+++ b/mods/diff/tests/views.test.ts@@ -200,6 +200,38 @@ describe('views', () => {expect(walked).not.toContain('file0.ts')})+ test('off fullscreen, the walk stops at the last file', async ($, on) => {+ const world = Fixtures.inRepository(on, Fixtures.MANY_FILES)++ await $.session.start(Fixtures.SESSION)+ await $.command.run(Fixtures.DIALOG_DIFF)+ await world.clock.advance(Fixtures.SETTLE_MS)+ await $.ui.render(Fixtures.INLINE_PANE)+ await $.ui.focus(Fixtures.ringOnto('file:file3.ts'))+ await $.ui.render(Fixtures.INLINE_PANE)+ await $.ui.focus(Fixtures.ringOnto('file:file5.ts'))+ await $.ui.render(Fixtures.INLINE_PANE)+ await $.ui.focus(Fixtures.ringOnto('file:file7.ts'))+ await $.ui.render(Fixtures.INLINE_PANE)+ await $.ui.focus(Fixtures.ringOnto('file:file9.ts'))++ const last = Fixtures.textOf(await $.ui.render(Fixtures.INLINE_PANE))++ expect(last).toContain('\u276f file9.ts')+ expect(last).toContain(' \u2191 5 more files')++ expect(+ await $.ui.focus(Fixtures.ringOnto('file:file5.ts')),+ 'the ring would wrap to the first row drawn; it stays',+ ).toEqual({})++ expect(Fixtures.textOf(await $.ui.render(Fixtures.INLINE_PANE))).toContain(+ '\u276f file9.ts',+ )++ expect(world.focused, 'the wrap never reached the engine').toHaveLength(4)+ })+test('off fullscreen, the dialog draws at any width', async ($, on) => {const world = Fixtures.inRepository(on, Fixtures.TWO_FILES)