We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda7959 commit d012b21Copy full SHA for d012b21
1 file changed
lib/github.test.ts
@@ -287,7 +287,7 @@ describe('GitHub API cache behavior', () => {
287
});
288
289
it('refresh bypass: bypassCache=true forces a fresh fetch', async () => {
290
- vi.mocked(fetch).mockResolvedValue(
+ vi.mocked(fetch).mockImplementation(async () =>
291
mockResponse({
292
data: {
293
user: { contributionsCollection: { contributionCalendar: mockCalendar } },
@@ -305,7 +305,7 @@ describe('GitHub API cache behavior', () => {
305
vi.useFakeTimers();
306
vi.setSystemTime(new Date('2026-01-01T00:00:00.000Z'));
307
308
309
310
311
0 commit comments