fix: shard OpenAI transport stream tests (#109181)

* test(agents): shard OpenAI transport stream suites

* chore(lint): transfer transport test baselines
This commit is contained in:
Peter Steinberger
2026-07-16 09:43:07 -07:00
committed by GitHub
parent 0903ebe4fa
commit 05dd921016
14 changed files with 64 additions and 33 deletions
+23 -3
View File
@@ -94,12 +94,12 @@ describe("test-projects args", () => {
]);
});
it("keeps extracted test entries in their owner configs", () => {
expect(buildVitestRunPlans(["src/agents/openai-transport-stream.test.ts"])).toEqual([
it("keeps split test entries in their owner configs", () => {
expect(buildVitestRunPlans(["src/agents/openai-transport-stream.base.test.ts"])).toEqual([
{
config: "test/vitest/vitest.agents.config.ts",
forwardedArgs: [],
includePatterns: ["src/agents/openai-transport-stream.test.ts"],
includePatterns: ["src/agents/openai-transport-stream.base.test.ts"],
watchMode: false,
},
]);
@@ -113,6 +113,26 @@ describe("test-projects args", () => {
]);
});
it("expands a test filename prefix into standalone sibling suites", () => {
expect(buildVitestRunPlans(["src/agents/openai-transport-stream"])).toEqual([
{
config: "test/vitest/vitest.agents.config.ts",
forwardedArgs: [],
includePatterns: [
"src/agents/openai-transport-stream.base.test.ts",
"src/agents/openai-transport-stream.deepseek-and-shaping.test.ts",
"src/agents/openai-transport-stream.inline-reasoning-and-tool-calls.test.ts",
"src/agents/openai-transport-stream.reasoning-and-cache.test.ts",
"src/agents/openai-transport-stream.replay-and-tools.test.ts",
"src/agents/openai-transport-stream.replay-sanitization.test.ts",
"src/agents/openai-transport-stream.streaming.test.ts",
"src/agents/openai-transport-stream.usage-and-calls.test.ts",
],
watchMode: false,
},
]);
});
it("routes top-level repo tests to the contracts config", () => {
expect(buildVitestRunPlans(["test/appcast.test.ts"])).toEqual([
{