Skip to content

Commit

Permalink
fix: Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthv96 committed Nov 14, 2024
1 parent 90716ef commit dc114d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tests/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'vitest-dom/extend-expect';
// TODO: Remove once https://github.com/sveltejs/kit/issues/6259 is closed.
beforeAll(() => {
vi.mock('$app/environment', () => ({
browser: 'window' in globalThis
browser: 'window' in globalThis,
dev: true
}));
});

0 comments on commit dc114d5

Please sign in to comment.