Skip to content

Commit 1142656

Browse files
committed
Fix analytics test
1 parent 01c54e5 commit 1142656

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/analytics.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const mockAnalyticsInstance = {
1111

1212
// Mock the @segment/analytics-node module to return the same instance every time
1313
vi.mock("@segment/analytics-node", () => {
14-
const Analytics = vi.fn(() => mockAnalyticsInstance);
14+
const Analytics = vi.fn(function () {
15+
return mockAnalyticsInstance;
16+
});
1517
return { Analytics };
1618
});
1719

0 commit comments

Comments
 (0)