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:
@@ -13,13 +13,6 @@ import {
|
|||||||
import type { AgentStreamEventPayload } from "../../messages.js";
|
import type { AgentStreamEventPayload } from "../../messages.js";
|
||||||
import type { AgentProvider, AgentSessionConfig, AgentStreamEvent, AgentTimelineItem } from "../agent-sdk-types.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 {
|
function tmpCwd(): string {
|
||||||
const dir = mkdtempSync(path.join(os.tmpdir(), "claude-agent-e2e-"));
|
const dir = mkdtempSync(path.join(os.tmpdir(), "claude-agent-e2e-"));
|
||||||
try {
|
try {
|
||||||
@@ -69,7 +62,7 @@ function isSleepCommandToolCall(item: ToolCallItem): boolean {
|
|||||||
return inputCommand.includes("sleep 60");
|
return inputCommand.includes("sleep 60");
|
||||||
}
|
}
|
||||||
|
|
||||||
describeClaudeIntegration("ClaudeAgentClient (SDK integration)", () => {
|
describe("ClaudeAgentClient (SDK integration)", () => {
|
||||||
test(
|
test(
|
||||||
"responds with text",
|
"responds with text",
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user