7b5af2dd9f
- converted relative imports to path aliases ($c/*, $ai/*, $tui/*, etc.) across all packages - added per-package tsconfig.json with complete path mappings for runtime resolution - set importModuleSpecifier to non-relative for IDE auto-import preferences - updated dev script to run from monorepo root for consistent path resolution
25 lines
858 B
TypeScript
25 lines
858 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { type RequestBody, transformRequestBody } from "$ai/providers/openai-codex/request-transformer";
|
|
|
|
describe("openai-codex include handling", () => {
|
|
it("always includes reasoning.encrypted_content when caller include is custom", async () => {
|
|
const body: RequestBody = {
|
|
model: "gpt-5.1-codex",
|
|
};
|
|
|
|
const transformed = await transformRequestBody(body, { include: ["foo"] });
|
|
expect(transformed.include).toEqual(["foo", "reasoning.encrypted_content"]);
|
|
});
|
|
|
|
it("does not duplicate reasoning.encrypted_content", async () => {
|
|
const body: RequestBody = {
|
|
model: "gpt-5.1-codex",
|
|
};
|
|
|
|
const transformed = await transformRequestBody(body, {
|
|
include: ["foo", "reasoning.encrypted_content"],
|
|
});
|
|
expect(transformed.include).toEqual(["foo", "reasoning.encrypted_content"]);
|
|
});
|
|
});
|