Skip to content

Commit 3d629a5

Browse files
rrodrigu3zclaude
andcommitted
fix(ci): exclude integration tests from default test run
Integration tests create an OpenShellClient at file scope which tries to load mTLS certs — fails in CI where no gateway exists. Re-add exclude to vitest.config.ts and use a separate config (vitest.integration.config.ts) for test:integration script. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6795a3d commit 3d629a5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"typecheck": "tsc --noEmit",
5252
"test": "vitest run",
5353
"test:watch": "vitest watch",
54-
"test:integration": "OPENSHELL_TEST=1 vitest run src/__tests__/integration.test.ts",
54+
"test:integration": "OPENSHELL_TEST=1 vitest run --config vitest.integration.config.ts",
5555
"lint": "eslint src/ --ignore-pattern 'src/generated/'",
5656
"lint:fix": "eslint src/ --fix --ignore-pattern 'src/generated/'",
5757
"format": "prettier --write 'src/**/*.ts' '!src/generated/**' '*.json' '*.md'",

vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default defineConfig({
44
test: {
55
environment: "node",
66
include: ["src/__tests__/**/*.test.ts"],
7+
exclude: ["src/__tests__/integration.test.ts"],
78
coverage: {
89
provider: "v8",
910
reporter: ["text", "json", "html"],

vitest.integration.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
environment: "node",
6+
include: ["src/__tests__/integration.test.ts"],
7+
},
8+
});

0 commit comments

Comments
 (0)