mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-18 18:11:02 -07:00
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:
@@ -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(() => ({
|
||||
|
||||
Reference in New Issue
Block a user