Download scripts/tests/test-setup.ts from SaylorTwift/gemini-cli: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/scripts/tests/test-setup.ts
- Command line
-
hf download hf://SaylorTwift/gemini-cli/scripts/tests/test-setup.ts
-
curl -L -o test-setup.ts https://huggingface.co/SaylorTwift/gemini-cli/resolve/main/scripts/tests/test-setup.ts
278 Bytes
| /** | |
| * @license | |
| * Copyright 2025 Google LLC | |
| * SPDX-License-Identifier: Apache-2.0 | |
| */ | |
| import { vi } from 'vitest'; | |
| vi.mock('fs', async () => { | |
| const actual = await vi.importActual<typeof import('fs')>('fs'); | |
| return { | |
| ...actual, | |
| appendFileSync: vi.fn(), | |
| }; | |
| }); | |