test: exclude e2e and integration tests in CI
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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/**"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user