Skip to content

Commit bb9d46b

Browse files
committed
test: mock server-only for Vitest compatibility
1 parent 44f96b7 commit bb9d46b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/github.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import {
2121
} from './github';
2222
import type { ContributionCalendar } from '../types';
2323

24+
vi.mock('server-only', () => ({}));
25+
2426
const mockCalendar: ContributionCalendar = {
2527
totalContributions: 42,
2628
weeks: [

0 commit comments

Comments
 (0)