Files
Codeman/test/setup.ts
T

17 lines
510 B
TypeScript
Raw Normal View History

/**
* @fileoverview Global test setup for Claudeman tests
*
* SAFETY: TmuxManager and ScreenManager have built-in test mode detection
* (via process.env.VITEST) that makes ALL shell commands no-ops.
* This means tests CANNOT kill, create, or interact with real tmux/screen
* sessions regardless of what the test code does.
*
* This setup file only handles mock/timer cleanup between tests.
*/
import { afterEach, vi } from 'vitest';
2026-01-30 22:25:59 +01:00
afterEach(() => {
vi.clearAllMocks();
vi.useRealTimers();
});