Remove improper test skipping logic

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Mohamed Boudra
2025-11-30 01:35:53 +00:00
parent 143c0a0713
commit 8271d0f2de

View File

@@ -13,13 +13,6 @@ import {
import type { AgentStreamEventPayload } from "../../messages.js";
import type { AgentProvider, AgentSessionConfig, AgentStreamEvent, AgentTimelineItem } from "../agent-sdk-types.js";
const claudeIntegrationEnabled = Boolean(process.env.ANTHROPIC_API_KEY?.trim()?.length);
const describeClaudeIntegration = claudeIntegrationEnabled ? describe : describe.skip;
if (!claudeIntegrationEnabled) {
console.warn("Skipping ClaudeAgentClient integration tests because ANTHROPIC_API_KEY is not set.");
}
function tmpCwd(): string {
const dir = mkdtempSync(path.join(os.tmpdir(), "claude-agent-e2e-"));
try {
@@ -69,7 +62,7 @@ function isSleepCommandToolCall(item: ToolCallItem): boolean {
return inputCommand.includes("sleep 60");
}
describeClaudeIntegration("ClaudeAgentClient (SDK integration)", () => {
describe("ClaudeAgentClient (SDK integration)", () => {
test(
"responds with text",
async () => {