mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-10 06:20:13 +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 () => {
|
beforeEach(async () => {
|
||||||
tempRoot = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'ccs-persist-handler-test-'));
|
tempRoot = await fs.promises.mkdtemp(path.join(os.tmpdir(), 'ccs-persist-handler-test-'));
|
||||||
originalClaudeConfigDir = process.env.CLAUDE_CONFIG_DIR;
|
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;
|
delete process.env.CLAUDE_CONFIG_DIR;
|
||||||
originalProcessExit = process.exit;
|
originalProcessExit = process.exit;
|
||||||
originalFsOpen = fs.promises.open;
|
originalFsOpen = fs.promises.open;
|
||||||
|
|||||||
Reference in New Issue
Block a user