test: exclude e2e and integration tests in CI

This commit is contained in:
Mohamed Boudra
2026-01-14 19:42:46 +07:00
parent 347389965c
commit 1cbe185ac5
2 changed files with 7 additions and 4 deletions
@@ -72,10 +72,7 @@ async function collectTurnEvents(
return result; return result;
} }
// Skip integration tests in CI - requires real OpenCode server describe("OpenCodeAgentClient", () => {
const shouldSkip = process.env.CI === "true";
describe.skipIf(shouldSkip)("OpenCodeAgentClient", () => {
const buildConfig = (cwd: string): AgentSessionConfig => ({ const buildConfig = (cwd: string): AgentSessionConfig => ({
provider: "opencode", provider: "opencode",
cwd, cwd,
+6
View File
@@ -1,6 +1,8 @@
import path from "node:path"; import path from "node:path";
import { defineConfig } from "vitest/config"; import { defineConfig } from "vitest/config";
const isCI = process.env.CI === "true";
export default defineConfig({ export default defineConfig({
resolve: { resolve: {
alias: { alias: {
@@ -20,5 +22,9 @@ export default defineConfig({
maxForks: 4, maxForks: 4,
}, },
}, },
// Skip e2e and integration tests in CI - they require real agent binaries
exclude: isCI
? ["**/*.e2e.test.ts", "**/opencode-agent.test.ts", "**/node_modules/**"]
: ["**/node_modules/**"],
}, },
}); });