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 / sec-default / tests / fixtures / caught / unreadable.ts
9 lines · 277 BRaw
1/**
2 * A `$` whose every call rejects: no policy is read, no line is logged.
3 */
4export const UNREADABLE = Object.freeze({
5 settings: {
6 read: () => Promise.reject(new Error('settings unreadable')),
7 },
8 ui: { log: () => Promise.reject(new Error('log unwritable')) },
9})