Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Dec 12, 2024
1 parent a1cabc8 commit dcaff79
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/unit/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ import { beforeAll, vi } from 'vitest';

beforeAll(() => {
vi.mock('$app/environment', () => ({
browser: true
dev: true,
building: false,
browser: true,
page: {
params: {
project: 'tests',
region: 'tests'
}
}
}));
vi.mock('$app/navigation', () => ({
goto: vi.fn(),
beforeNavigate: vi.fn()
}));
vi.mock('$app/environment', () => ({
dev: true,
browser: true
}));
vi.mock('$env/static/public', () => import.meta.env);
vi.mock('$env/dynamic/public', () => ({
env: import.meta.env
Expand Down

0 comments on commit dcaff79

Please sign in to comment.