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 / stalled-project-of.ts
19 lines · 534 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 walks never answer, its session starting untouched
8 * (startedOf): what a hook that waited on a walk would hang on.
9 *
10 * @param on the test's `on`
11 * @returns the toasts and lines the plugins raised, and the clock
12 */
13export function stalledProjectOf(on: On): Started {
14 const started = startedOf(on)
15
16 on('fs.ancestors', () => new Promise<never>(() => undefined))
17
18 return started
19}