Files
console/tests/unit/setup.ts
T
2023-02-06 09:31:06 +01:00

16 lines
355 B
TypeScript

import { vi } from 'vitest';
import * as svelteinternal from 'svelte/internal';
beforeAll(() => {
vi.mock('$app/environment', () => ({
browser: true
}));
vi.mock('$app/stores', () => ({
page: null
}));
vi.mock('$app/navigation', () => ({
goto: vi.fn()
}));
vi.mock('svelte', () => svelteinternal);
});