Running Copilot coding agent #265
Annotations
2 errors
|
src/api/websocket.test.ts > EventSubscriptionSchema > should accept subscription with channels:
packages/spec/src/api/websocket.test.ts#L213
ZodError: [
{
"validation": "regex",
"code": "invalid_string",
"message": "Event name must be lowercase with dots for namespacing (e.g., \"user.created\", \"order.paid\")",
"path": [
"events",
0
]
}
]
❯ Object.get error [as error] ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js:39:31
❯ ZodObject.parse ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.js:114:22
❯ src/api/websocket.test.ts:213:44
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { validation: 'regex', code: 'invalid_string', message: 'Event name must be lowercase with dots for namespacing (e.g., "user.created", "order.paid")', path: [ 'events', +0 ] } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { validation: 'regex', code: 'invalid_string', message: 'Event name must be lowercase with dots for namespacing (e.g., "user.created", "order.paid")', path: [ 'events', +0 ] } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { events: [ 'Event name must be lowercase with dots for namespacing (e.g., "user.created", "order.paid")' ] } } }
|
|
src/api/websocket.test.ts > EventSubscriptionSchema > should accept subscription with wildcard events:
packages/spec/src/api/websocket.test.ts#L178
AssertionError: expected [Function] to not throw an error but '[\n {\n "validation": "regex",\n …' was thrown
- Expected:
undefined
+ Received:
"[
{
\"validation\": \"regex\",
\"code\": \"invalid_string\",
\"message\": \"Event name must be lowercase with dots for namespacing (e.g., \\\"user.created\\\", \\\"order.paid\\\")\",
\"path\": [
\"events\",
0
]
},
{
\"validation\": \"regex\",
\"code\": \"invalid_string\",
\"message\": \"Event name must be lowercase with dots for namespacing (e.g., \\\"user.created\\\", \\\"order.paid\\\")\",
\"path\": [
\"events\",
2
]
}
]"
❯ src/api/websocket.test.ts:178:67
|