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

View File

@@ -72,10 +72,7 @@ async function collectTurnEvents(
return result;
}
// Skip integration tests in CI - requires real OpenCode server
const shouldSkip = process.env.CI === "true";
describe.skipIf(shouldSkip)("OpenCodeAgentClient", () => {
describe("OpenCodeAgentClient", () => {
const buildConfig = (cwd: string): AgentSessionConfig => ({
provider: "opencode",
cwd,

View File

@@ -1,6 +1,8 @@
import path from "node:path";
import { defineConfig } from "vitest/config";
const isCI = process.env.CI === "true";
export default defineConfig({
resolve: {
alias: {
@@ -20,5 +22,9 @@ export default defineConfig({
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/**"],
},
});