fix: resolve all TypeScript errors in WAProto and test files
- Changed WAProto.proto syntax from proto3 to proto2 to support required fields - Regenerated WAProto static files (index.d.ts, index.js) with correct proto2 syntax - Fixed type annotations in test files (circuit-breaker, sync-action-utils, trace-context) - Fixed Mock type errors in baileys-event-stream and cache-utils tests - Fixed LID mapping test expectations to match array type - All 78 TypeScript errors resolved, 0 remaining https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
@@ -255,8 +255,8 @@ describe('Spans', () => {
|
||||
addSpanEvent(span, 'event-occurred', { detail: 'value' })
|
||||
|
||||
expect(span.events).toHaveLength(1)
|
||||
expect(span.events[0].name).toBe('event-occurred')
|
||||
expect(span.events[0].attributes).toEqual({ detail: 'value' })
|
||||
expect(span.events[0]!.name).toBe('event-occurred')
|
||||
expect(span.events[0]!.attributes).toEqual({ detail: 'value' })
|
||||
})
|
||||
|
||||
it('should not add event to ended span', () => {
|
||||
|
||||
Reference in New Issue
Block a user