| ... | ... | @@ -46,6 +46,7 @@ it("isolates Claude capability probes without dropping workspace setting sources |
| 46 | 46 | assert.equal(options.strictMcpConfig, true); |
| 47 | 47 | assert.equal(options.cwd, "/workspace/project"); |
| 48 | 48 | assert.deepEqual(options.settingSources, [...CLAUDE_CAPABILITIES_PROBE_SETTING_SOURCES]); |
| 49 | assert.deepEqual(options.settings, { disableAllHooks: true }); |
| 49 | 50 | assert.deepEqual(options.allowedTools, []); |
| 50 | 51 | assert.equal(options.persistSession, false); |
| 51 | 52 | assert.equal(options.pathToClaudeCodeExecutable, "/usr/bin/claude"); |
| ... | ... | @@ -149,6 +150,14 @@ it.layer(NodeServices.layer)("Claude capability probe SDK boundary", (it) => { |
| 149 | 150 | assert.equal(invocation.mcpConfig, undefined); |
| 150 | 151 | |
| 151 | 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 | 161 | }).pipe(Effect.scoped), |
| 153 | 162 | ); |
| 154 | 163 | }); |