Skip to content

Fix: Correctly use context model for moderation #54

Fix: Correctly use context model for moderation

Fix: Correctly use context model for moderation #54

Triggered via pull request October 31, 2025 18:39
Status Failure
Total duration 37s
Artifacts

ci.yml

on: pull_request
Build, Test, and Lint
28s
Build, Test, and Lint
Fit to window
Zoom out
Zoom in

Annotations

2 errors
Build, Test, and Lint
Process completed with exit code 1.
src/__tests__/unit/checks/moderation-secret-keys.test.ts > moderation guardrail > uses context client when available: src/__tests__/unit/checks/moderation-secret-keys.test.ts#L102
AssertionError: expected "spy" to be called with arguments: [ { …(2) } ] Received: 1st spy call: Array [ Object { "input": "test text", "model": "omni-moderation-latest", + "safety_identifier": "openai-guardrails-js", }, ] Number of calls: 1 ❯ src/__tests__/unit/checks/moderation-secret-keys.test.ts:102:31