fix(test): update regression test to handle TS error correctly

This commit is contained in:
Christian Gunderman
2026-01-23 11:02:07 -08:00
parent 46a577cc80
commit 3361e3e006

View File

@@ -1285,9 +1285,8 @@ describe('ClearcutLogger', () => {
describe('logStartSessionEvent', () => {
it('should not throw if event is undefined', async () => {
const { logger } = setup();
// @ts-expect-error - intentionally passing undefined to reproduce the issue
await expect(
logger?.logStartSessionEvent(undefined),
logger?.logStartSessionEvent(undefined as unknown as StartSessionEvent),
).resolves.not.toThrow();
});
});