Running Copilot coding agent #421
Annotations
10 errors
|
src/identity/organization.test.ts > InvitationSchema > should use default status of pending:
packages/spec/src/identity/organization.test.ts#L204
ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "date",
"path": [
"expiresAt"
],
"message": "Expected string, received date"
},
{
"code": "invalid_type",
"expected": "string",
"received": "date",
"path": [
"createdAt"
],
"message": "Expected string, received date"
},
{
"code": "invalid_type",
"expected": "string",
"received": "date",
"path": [
"updatedAt"
],
"message": "Expected string, received date"
}
]
❯ 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/identity/organization.test.ts:204:37
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { issues: [ { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'expiresAt' ], message: 'Expected string, received date' }, { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'createdAt' ], message: 'Expected string, received date' }, { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'updatedAt' ], message: 'Expected string, received date' } ], addIssue: 'Function<anonymous>', addIssues: 'Function<anonymous>', errors: [ { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'expiresAt' ], message: 'Expected string, received date' }, { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'createdAt' ], message: 'Expected string, received date' }, { code: 'invalid_type', expected: 'string', received: 'date', path: [ 'updatedAt' ], message: 'Expected string, received date' } ], format: 'Function<format>', isEmpty: false, flatten: 'Function<flatten>', formErrors: { formErrors: [], fieldErrors: { expiresAt: [ 'Expected string, received date' ], createdAt: [ 'Expected string, received date' ], updatedAt: [ 'Expected string, received date' ] } } }
|
|
src/identity/organization.test.ts > InvitationSchema > should accept valid invitation data:
packages/spec/src/identity/organization.test.ts#L189
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"expiresAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:189:58
|
|
src/identity/organization.test.ts > MemberSchema > should accept different role types:
packages/spec/src/identity/organization.test.ts#L144
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:144:52
❯ src/identity/organization.test.ts:135:11
|
|
src/identity/organization.test.ts > MemberSchema > should accept valid member data:
packages/spec/src/identity/organization.test.ts#L129
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:129:50
|
|
src/identity/organization.test.ts > OrganizationSchema > should accept organization with metadata:
packages/spec/src/identity/organization.test.ts#L114
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:114:53
|
|
src/identity/organization.test.ts > OrganizationSchema > should validate slug format:
packages/spec/src/identity/organization.test.ts#L59
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:59:55
❯ src/identity/organization.test.ts:51:16
|
|
src/identity/organization.test.ts > OrganizationSchema > should accept minimal organization data:
packages/spec/src/identity/organization.test.ts#L39
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:39:53
|
|
src/identity/organization.test.ts > OrganizationSchema > should accept valid organization data:
packages/spec/src/identity/organization.test.ts#L27
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"updatedAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/organization.test.ts:27:53
|
|
src/identity/identity.test.ts > VerificationTokenSchema > should accept token with email identifier:
packages/spec/src/identity/identity.test.ts#L246
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"expires\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/identity.test.ts:246:60
|
|
src/identity/identity.test.ts > VerificationTokenSchema > should accept token with phone identifier:
packages/spec/src/identity/identity.test.ts#L235
AssertionError: expected [Function] to not throw an error but '[\n {\n "code": "invalid_type",\n…' was thrown
- Expected:
undefined
+ Received:
"[
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"expires\"
],
\"message\": \"Expected string, received date\"
},
{
\"code\": \"invalid_type\",
\"expected\": \"string\",
\"received\": \"date\",
\"path\": [
\"createdAt\"
],
\"message\": \"Expected string, received date\"
}
]"
❯ src/identity/identity.test.ts:235:60
|