Something went wrong. Try again.
Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
Something went wrong. Try again.
1234567891011121314151617181920212223// This script is run before each `.test.ts` file.globalThis.AbortController = undefined;globalThis.fetch = vi.fn();
process.on('unhandledRejection', error => { throw error;});
const originalConsole = console;globalThis.console = { ...originalConsole, warn: (vi.SpyInstance = () => { /* noop */ }), error: (vi.SpyInstance = message => { throw new Error(message); }),};
vi.spyOn(console, 'log');vi.spyOn(console, 'warn');vi.spyOn(console, 'error');