feat(routing): A/B Test Numerical Complexity Scoring for Gemini 3 (#16041)

Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
matt korwel
2026-01-22 16:12:07 -06:00
committed by GitHub
parent 50985d38c4
commit 57601adc90
23 changed files with 975 additions and 87 deletions

View File

@@ -36,9 +36,17 @@ const mockFs = vi.hoisted(() => ({
writeSync: vi.fn(),
constants: { W_OK: 2 },
}));
vi.mock('node:fs', () => ({
default: mockFs,
}));
vi.mock('node:fs', async (importOriginal) => {
const actual = await importOriginal<typeof import('node:fs')>();
return {
...actual,
default: {
...actual,
...mockFs,
},
...mockFs,
};
});
// Mock process.platform for platform-specific tests
const mockProcess = vi.hoisted(() => ({