summaryrefslogtreecommitdiff
path: root/scripts/tests/test-setup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/tests/test-setup.ts')
-rw-r--r--scripts/tests/test-setup.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/tests/test-setup.ts b/scripts/tests/test-setup.ts
new file mode 100644
index 00000000..d4c4b465
--- /dev/null
+++ b/scripts/tests/test-setup.ts
@@ -0,0 +1,12 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+import { vi } from 'vitest';
+
+vi.mock('fs', () => ({
+ ...vi.importActual('fs'),
+ appendFileSync: vi.fn(),
+}));