diff --git a/packages/analytics-nextjs/src/plugins/testSpy.test.ts b/packages/analytics-nextjs/src/plugins/testSpy.test.ts index ebd395e..d9a68a6 100644 --- a/packages/analytics-nextjs/src/plugins/testSpy.test.ts +++ b/packages/analytics-nextjs/src/plugins/testSpy.test.ts @@ -47,6 +47,6 @@ it('logs events correctly', async () => { await analytics.track('Test Event'); expect(trackSpy).toHaveBeenCalled(); - expect(eventCtx).not.toBe(undefined); - expect(eventCtx.event.event).toBe('Test Event'); + expect(eventCtx!).not.toBe(undefined); + expect(eventCtx!.event.event).toBe('Test Event'); });