mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-19 07:54:38 +00:00
20 lines
364 B
TypeScript
20 lines
364 B
TypeScript
/**
|
|
* @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');
|
|
const appendFileSync = vi.fn();
|
|
return {
|
|
...actual,
|
|
appendFileSync,
|
|
default: {
|
|
...actual,
|
|
appendFileSync,
|
|
},
|
|
};
|
|
});
|