Fix mock isolation in scope-filtering.test.ts
- Narrow mock.module() targets to prevent barrel export contamination
- Ensure proper cleanup after tests
🤖 GENERATED WITH ASSISTANCE OF OhMyOpenCode
This commit is contained in:
@@ -15,7 +15,7 @@ describe("loadMcpConfigs", () => {
|
|||||||
homedir: () => TEST_HOME,
|
homedir: () => TEST_HOME,
|
||||||
tmpdir,
|
tmpdir,
|
||||||
}))
|
}))
|
||||||
mock.module("../../shared", () => ({
|
mock.module("../../shared/claude-config-dir", () => ({
|
||||||
getClaudeConfigDir: () => join(TEST_HOME, ".claude"),
|
getClaudeConfigDir: () => join(TEST_HOME, ".claude"),
|
||||||
}))
|
}))
|
||||||
mock.module("../../shared/logger", () => ({
|
mock.module("../../shared/logger", () => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user