mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-16 17:11:04 -07:00
fix(test): update regression test to handle TS error correctly
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user