| ... | @@ -46,6 +46,7 @@ it("isolates Claude capability probes without dropping workspace setting sources | ... | @@ -46,6 +46,7 @@ it("isolates Claude capability probes without dropping workspace setting sources |
| 46 | assert.equal(options.strictMcpConfig, true); | 46 | assert.equal(options.strictMcpConfig, true); |
| 47 | assert.equal(options.cwd, "/workspace/project"); | 47 | assert.equal(options.cwd, "/workspace/project"); |
| 48 | assert.deepEqual(options.settingSources, [...CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES]); | 48 | assert.deepEqual(options.settingSources, [...CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES]); |
| | 49 | assert.deepEqual(options.settings, { disableAllHooks: true }); |
| 49 | assert.deepEqual(options.allowedTools, []); | 50 | assert.deepEqual(options.allowedTools, []); |
| 50 | assert.equal(options.persistSession, false); | 51 | assert.equal(options.persistSession, false); |
| 51 | assert.equal(options.pathToClaudeCodeExecutable, "/usr/bin/claude"); | 52 | assert.equal(options.pathToClaudeCodeExecutable, "/usr/bin/claude"); |
| ... | @@ -149,6 +150,14 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => { | ... | @@ -149,6 +150,14 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => { |
| 149 | assert.equal(invocation.mcpConfig, undefined); | 150 | assert.equal(invocation.mcpConfig, undefined); |
| 150 | | 151 | |
| 151 | assert.equal(invocation.args.includes("--setting-sources=user,project,local"), true); | 152 | assert.equal(invocation.args.includes("--setting-sources=user,project,local"), true); |
| | 153 | |
| | 154 | const settingsFlagIndex = invocation.args.indexOf("--settings"); |
| | 155 | assert.notEqual(settingsFlagIndex, -1); |
| | 156 | // @effect-diagnostics-next-line preferSchemaOverJson:off |
| | 157 | const flagSettings = JSON.parse(invocation.args[settingsFlagIndex + 1] ?? "{}") as { |
| | 158 | readonly disableAllHooks?: boolean; |
| | 159 | }; |
| | 160 | assert.equal(flagSettings.disableAllHooks, true); |
| 152 | }).pipe(Effect.scoped), | 161 | }).pipe(Effect.scoped), |
| 153 | ); | 162 | ); |
| 154 | }); | 163 | }); |