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
mods: tests and the README quote in ASCII only
poteata5b0e0c19832
diff --git a/mods/README.md b/mods/README.mdindex 1316c913..eb2b22a6 100644--- a/mods/README.md+++ b/mods/README.md@@ -52,7 +52,7 @@ test('outside a git repository /diff says so and opens nothing', async ($, on) =origin: { kind: 'composer' },})- expect(text).toContain('isn’t in a git repository')+ expect(text).toMatch(/isn.t in a git repository/)expect(opened).toEqual([])})```diff --git a/mods/diff/tests/boot-probe.test.ts b/mods/diff/tests/boot-probe.test.tsindex 553f3b70..57d63f18 100644--- a/mods/diff/tests/boot-probe.test.ts+++ b/mods/diff/tests/boot-probe.test.ts@@ -46,13 +46,13 @@ test('/diff at boot joins the boot probe, then asks again', async ($, on) => {const ran = $.command.run(DIFF)await clock.advance(0)- expect(probes, 'the boot’s probe, which /diff joined').toHaveLength(1)+ expect(probes, 'the boot probe, which /diff joined').toHaveLength(1)await clock.advance(GIT_TIMEOUT_MS)await bootingexpect(await ran).toEqual({- text: expect.stringContaining('isn’t in a git repository'),+ text: expect.stringMatching(/isn.t in a git repository/),})expect(probes, 'then one more of its own').toHaveLength(2)})diff --git a/mods/diff/tests/command.test.ts b/mods/diff/tests/command.test.tsindex c8b0e9d9..c2b5e1d5 100644--- a/mods/diff/tests/command.test.ts+++ b/mods/diff/tests/command.test.ts@@ -37,11 +37,11 @@ test('outside a git repository /diff says so and opens nothing', async ($, on) =await $.session.start(SESSION)const { text } = await $.command.run(DIFF)- expect(text).toContain('isn’t in a git repository')+ expect(text).toMatch(/isn.t in a git repository/)expect(opened).toEqual([])})-test('a git that never answers is not “no repository”', async ($, on) => {+test('a git that never answers is not "no repository"', async ($, on) => {on('session.start', ($, e) => ({ cwd: e.cwd }))on('command.register', ($, e) => ({ value: { command: e.name } }))on('process.run', () => ({@@ -51,7 +51,7 @@ test('a git that never answers is not “no repository”', async ($, on) => {await $.session.start(SESSION)const { text } = await $.command.run(DIFF)- expect(text).toContain('git didn’t answer')+ expect(text).toMatch(/git didn.t answer/)})test('with the built-in holding /diff, the plugin stands down', async ($, on) => {diff --git a/mods/diff/tests/pane.test.ts b/mods/diff/tests/pane.test.tsindex 220abd52..6f0481c8 100644--- a/mods/diff/tests/pane.test.ts+++ b/mods/diff/tests/pane.test.ts@@ -121,7 +121,7 @@ function inRepository(on: On) {return { runs, opened, closed }}-test('/diff opens the pane over the session’s changes', async ($, on) => {+test('/diff opens the pane over the changes in the session', async ($, on) => {const world = inRepository(on)await $.session.start(SESSION)@@ -158,7 +158,7 @@ test('every git child is pinned to the repository and reads the C locale', async}})-test('Claude’s first edit opens the pane on a wide terminal', async ($, on) => {+test('the first edit Claude makes opens the pane on a wide terminal', async ($, on) => {const world = inRepository(on)on('tool.call', () => ({ result: 'edited' }))diff --git a/mods/sec-default/tests/sec-default.test.ts b/mods/sec-default/tests/sec-default.test.tsindex 6d934fa0..d3b6ea4d 100644--- a/mods/sec-default/tests/sec-default.test.ts+++ b/mods/sec-default/tests/sec-default.test.ts@@ -142,7 +142,7 @@ test()test(- 'with no allowlist, the person’s plugin adds its tool',+ 'with no allowlist, a plugin the person installed adds its tool',{ plugins: [registering('mine')] },async ($, on) => {on('settings.read', () => ({ value: NO_ALLOWLIST }))@@ -168,7 +168,7 @@ test()test(- 'the organization’s tools are listed as its tiers listed them',+ 'the organization tools are listed as its tiers listed them',{ plugins: [relabeling, listing] },async ($, on) => {on('settings.read', () => ({ value: ALLOWLIST }))@@ -184,7 +184,7 @@ test()test(- 'a prompt section continues past the person’s plugins, not the organization’s',+ 'a prompt section skips the plugins the person installed, never the organization ones',{ plugins: [dropping, signing] },async ($, on) => {on('prompt.section', ($, e) => ({ text: e.text }))diff --git a/mods/telemetry/tests/telemetry.test.ts b/mods/telemetry/tests/telemetry.test.tsindex 01b83399..0fe9a9fb 100644--- a/mods/telemetry/tests/telemetry.test.ts+++ b/mods/telemetry/tests/telemetry.test.ts@@ -74,7 +74,7 @@ function batchOf(post: Args<'http.fetch'>): unknown {}test(- 'a plugin’s $.telemetry.log posts one first-party row',+ 'a $.telemetry.log call from a plugin posts one first-party row',{ plugins: [recording] },async ($, on) => {memoryEnv(on, { USER_TYPE: 'ant' })