mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 08:17:11 +00:00
test(ci): add env isolation comment to persist-command-handler
Align with claudecode-env-stripping.test.ts style — explain why CLAUDE_CONFIG_DIR is cleared in beforeEach for consistency across test files. Built [OnSteroids](https://onsteroids.ai)
This commit is contained in:
@@ -73,6 +73,7 @@ function stubProcessExit(): void {
|
||||
beforeEach(async () => {
|
||||
tempRoot = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'ccs-persist-handler-test-'));
|
||||
originalClaudeConfigDir = process.env.CLAUDE_CONFIG_DIR;
|
||||
// Clear CLAUDE_CONFIG_DIR so scoped CCS_HOME takes effect (leaks from host CCS session)
|
||||
delete process.env.CLAUDE_CONFIG_DIR;
|
||||
originalProcessExit = process.exit;
|
||||
originalFsOpen = fs.promises.open;
|
||||
|
||||
Reference in New Issue
Block a user