Skip to content

Commit 09edcf4

Browse files
authored
Fix Codex test by updating mock session creation
1 parent 8e53bd8 commit 09edcf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/__tests__/codex.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { ApiHandlerCreateMessageMetadata } from "../../index"
77
import type { ApiHandlerOptions } from "../../../shared/api"
88
import { OpenAiNativeHandler } from "../openai-native"
99

10-
import { CodexHandler } from "../codex"
10+
const createSessionMock = vi.hoisted(() => vi.fn())
1111

1212
vi.mock("openai", () => {
1313
return {

0 commit comments

Comments
 (0)