// tests/helpers/no-session-id.mjs // Preloaded by `npm test` (node --import). The lock CLI (lib/util/test-lock.mjs) // writes a session pointer keyed by CLAUDE_CODE_SESSION_ID, and the stop guard // reads it; a suite run inside a Claude Code session must not write one for // that live session (S133). The id is removed before any test file starts. delete process.env.CLAUDE_CODE_SESSION_ID;