From c20c4892037ec7f11f9c321ceb85c6a550cf2975 Mon Sep 17 00:00:00 2001 From: gerald4277 Date: Wed, 16 Sep 2026 16:13:18 -0700 Subject: [PATCH] test: exclude test/api from test:python so fork PRs do not fail on the missing token Vitest loads every test file before applying --testNamePattern, and test/__setup__/config.ts throws at import when TEST_USER_TOKEN is unset. test:python was the only test script without --exclude ./test/api, so the Python Support job failed on six API suites on every fork PR. Fixes #1350 Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_017eoGxkXnqMCSErCuRHNDUU --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7ec89648c..4a6bafd14 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test:e2e": "vitest run --testNamePattern \"\\[e2e\\]\" --exclude ./test/api", "test:e2e:local": "vitest run --testNamePattern \"^(?=.*\\[e2e\\])(?!.*\\[api\\]).*$\" --exclude ./test/api", "test:api": "vitest run --testNamePattern \"^(?=.*\\[api\\])(?!.*\\[e2e\\]).*$\" --exclude ./test/e2e", - "test:python": "vitest run --testNamePattern \"\\[python\\]\"", + "test:python": "vitest run --testNamePattern \"\\[python\\]\" --exclude ./test/api", "lint": "oxlint --type-aware", "lint:fix": "oxlint --type-aware --fix", "format": "oxfmt --check",