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 / agents-md / tests / fixtures / unreadable-project-of.ts
20 lines · 479 BRaw
1import type { On } from 'claude-code'
2
3import { startedOf } from './started-of.js'
4import type { Started } from './types'
5
6/**
7 * A project whose walk fails, its session starting untouched (startedOf).
8 *
9 * @param on the test's `on`
10 * @returns the toasts and lines the plugins raised, in order
11 */
12export function unreadableProjectOf(on: On): Started {
13 const started = startedOf(on)
14
15 on('fs.ancestors', () => {
16 throw new Error('no walk today')
17 })
18
19 return started
20}