diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-01-01 16:41:27 +0100 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2026-01-01 16:41:27 +0100 |
| commit | 56db8cc6d68748ecdd163c27d4cf7e5dfd8e295f (patch) | |
| tree | a990b22944e5c671d58c193e3719cfc844f46953 /webAO/__tests__/isLowMemory.test.ts | |
| parent | 3e17eb9e5695fdf64f125914ee60c26ac7d96d12 (diff) | |
weird ci fail
Diffstat (limited to 'webAO/__tests__/isLowMemory.test.ts')
| -rw-r--r-- | webAO/__tests__/isLowMemory.test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webAO/__tests__/isLowMemory.test.ts b/webAO/__tests__/isLowMemory.test.ts index 1101e48..870b40e 100644 --- a/webAO/__tests__/isLowMemory.test.ts +++ b/webAO/__tests__/isLowMemory.test.ts @@ -15,6 +15,12 @@ jest.mock('../services/request', () => ({ requestBuffer: jest.fn().mockResolvedValue(new ArrayBuffer(0)), })); +// Mock the fileExists function to prevent network requests +jest.mock('../utils/fileExists', () => ({ + __esModule: true, + default: jest.fn().mockResolvedValue(false), +})); + // Set AO_HOST to a valid URL before tests run beforeAll(() => { setAOhost('https://example.com/'); |
