mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 08:52:28 +00:00
test(core): fix windows test failure by mocking process.platform in ripgrep fallback tests
This commit is contained in:
@@ -1797,6 +1797,18 @@ describe('resolveRipgrepPath', () => {
|
||||
beforeEach(() => {
|
||||
vi.spyOn(os, 'platform').mockReturnValue('linux');
|
||||
vi.spyOn(os, 'arch').mockReturnValue('x64');
|
||||
vi.stubGlobal(
|
||||
'process',
|
||||
Object.create(process, {
|
||||
platform: {
|
||||
get: () => 'linux',
|
||||
},
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
vi.unstubAllGlobals();
|
||||
});
|
||||
|
||||
it('should resolve the SEA (flattened) path first', async () => {
|
||||
|
||||
Reference in New Issue
Block a user