mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-16 20:22:21 +03:00
fix(ci): register new mutation-covering test + realign stale codex-cli version fixture
- stryker.conf.json: add tests/unit/cliproxyapi-model-mapping-dispatch.test.ts to tap.testFiles so it counts toward mutation coverage for the newly-added comboContextCache.ts coverage (check:mutation-test-coverage --strict was failing). - tests/unit/provider-models-route-codex.test.ts: DEFAULT_CODEX_CLIENT_VERSION was bumped to 0.144.0 on release/v3.8.47 after this test's fixtures were written; realign the hardcoded 0.142.0 expectations to the current constant.
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
"tests/unit/claude-passthrough-stream-boolean.test.ts",
|
||||
"tests/unit/claude-passthrough-thinking-2454.test.ts",
|
||||
"tests/unit/cli-simulate.test.ts",
|
||||
"tests/unit/cliproxyapi-model-mapping-dispatch.test.ts",
|
||||
"tests/unit/cline-response-envelope.test.ts",
|
||||
"tests/unit/clinepass-provider.test.ts",
|
||||
"tests/unit/codex-failover.test.ts",
|
||||
|
||||
@@ -109,7 +109,7 @@ test("provider models route discovers live Codex models and preserves static ali
|
||||
display_name: "GPT 5.6 GitHub",
|
||||
visibility: "list",
|
||||
supported_in_api: true,
|
||||
minimal_client_version: "0.142.0",
|
||||
minimal_client_version: "0.144.0",
|
||||
context_window: 372000,
|
||||
input_modalities: ["text", "image"],
|
||||
supported_reasoning_levels: [{ effort: "low" }, { effort: "high" }],
|
||||
@@ -145,11 +145,11 @@ test("provider models route discovers live Codex models and preserves static ali
|
||||
assert.equal(body.source, "api");
|
||||
assert.deepEqual(seenRequests, [
|
||||
{
|
||||
url: "https://chatgpt.com/backend-api/codex/models?client_version=0.142.0",
|
||||
url: "https://chatgpt.com/backend-api/codex/models?client_version=0.144.0",
|
||||
authorization: "Bearer codex-access-token",
|
||||
workspaceId: "account-123",
|
||||
originator: "codex_cli_rs",
|
||||
userAgent: "codex-cli/0.142.0 (Windows 10.0.26200; x64)",
|
||||
userAgent: "codex-cli/0.144.0 (Windows 10.0.26200; x64)",
|
||||
},
|
||||
{
|
||||
url: "https://raw.githubusercontent.com/openai/codex/refs/heads/main/codex-rs/models-manager/models.json",
|
||||
@@ -190,7 +190,7 @@ test("provider models route uses the GitHub Codex catalog when live discovery fa
|
||||
display_name: "GPT-5.6-Sol",
|
||||
visibility: "list",
|
||||
supported_in_api: true,
|
||||
minimal_client_version: "0.142.0",
|
||||
minimal_client_version: "0.144.0",
|
||||
context_window: 372000,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user