Skip to content

Commit c63e502

Browse files
committed
test(infra): mirror packages live glob in live-config test
1 parent e46f9d8 commit c63e502

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/ai/src/providers/openai-responses.live.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ describeLive("OpenAI Responses live", () => {
101101
expect(result.stopReason).toBe("toolUse");
102102
const toolCalls = result.content.filter((block) => block.type === "toolCall");
103103
expect(toolCalls).toHaveLength(1);
104-
expect(toolCalls[0]?.name).toBe("live_probe");
105-
expect((toolCalls[0]?.arguments as { value?: string }).value).toBe("LIVE_OK");
104+
const probeCall = toolCalls[0];
105+
expect(probeCall?.name).toBe("live_probe");
106+
const probeArguments = (probeCall?.arguments ?? {}) as { value?: string };
107+
expect(probeArguments.value).toBe("LIVE_OK");
106108
for (const block of result.content) {
107109
if (block.type === "thinking") {
108110
expect(block.thinkingSignature).toBeTruthy();

src/infra/vitest-live-config.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ describe("live vitest config", () => {
2222
expect(liveConfig.test?.include).toEqual([
2323
"src/**/*.live.test.ts",
2424
"test/**/*.live.test.ts",
25+
"packages/*/src/**/*.live.test.ts",
2526
BUNDLED_PLUGIN_LIVE_TEST_GLOB,
2627
]);
2728
expect(normalizeConfigPaths(liveConfig.test?.setupFiles)).toEqual([

0 commit comments

Comments
 (0)