Skip to content

start with broken tests #19

start with broken tests

start with broken tests #19

Triggered via pull request October 13, 2025 07:10
Status Failure
Total duration 26s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors
Prettier
Process completed with exit code 1.
Type Check
Process completed with exit code 2.
Type Check: tests/infer.test.ts#L661
Property 'infer' does not exist on type 'ObjectResult<ObjectProperties>'.
Type Check: tests/infer.test.ts#L654
Type 'ObjectResult<{ views: LexiconItem & { type: "integer"; }; likes: LexiconItem & { type: "integer"; }; shares: LexiconItem & { type: "integer"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: tests/infer.test.ts#L647
Type 'ObjectResult<{ did: StringOptions & { type: "string"; }; handle: StringOptions & { type: "string"; }; avatar: LexiconItem & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: tests/infer.test.ts#L591
Argument of type 'ObjectResult<{ id: { required: true; } & { type: "string"; }; name: { required: true; } & { type: "string"; }; }>' is not assignable to parameter of type 'LexiconItem'.
Type Check: tests/infer.test.ts#L562
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: tests/infer.test.ts#L561
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
Type Check: tests/infer.test.ts#L560
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
Type Check: tests/infer.test.ts#L540
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; email: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
tests/infer.test.ts > InferRef handles basic reference: tests/infer.test.ts#L351
AssertionError: Expected values to be strictly equal: + actual - expected '{\n' + ' main: {\n' + + ' post?:\n' + + ' | {\n' + + ' [key: string]: unknown\n' + + ' $type: "com.example.post"\n' + + ' }\n' + + ' | undefined\n' + - ' post?: {\n' + - ' $type: "com.example.post"\n' + - ' [key: string]: unknown\n' + - ' } | undefined\n' + ' }\n' + '}' - Expected + Received { main: { - post?: { - $type: "com.example.post" + post?: + | { + [key: string]: unknown + $type: "com.example.post" - [key: string]: unknown + } - } | undefined + | undefined } } ❯ tests/infer.test.ts:351:2
tests/infer.test.ts > InferObject handles mixed nullable, required, and optional: tests/infer.test.ts#L330
AssertionError: Expected values to be strictly equal: + actual - expected '{\n' + ' main: {\n' + + ' required?: string | undefined\n' + - ' optionalNullable?: string | null | undefined\n' + ' optional?: string | undefined\n' + + ' requiredNullable?: string | undefined\n' + + ' optionalNullable?: string | undefined\n' + - ' required: string\n' + - ' requiredNullable: string | null\n' + ' }\n' + '}' - Expected + Received { main: { - optionalNullable?: string | null | undefined + required?: string | undefined optional?: string | undefined - required: string - requiredNullable: string | null + requiredNullable?: string | undefined + optionalNullable?: string | undefined } } ❯ tests/infer.test.ts:330:2
tests/infer.test.ts > InferObject handles nullable and required field: tests/infer.test.ts#L317
AssertionError: Expected values to be strictly equal: + actual - expected + '{ main: { value?: string | undefined } }' - '{ main: { value: string | null } }' ^ Expected: "{ main: { value: string | null } }" Received: "{ main: { value?: string | undefined } }" ❯ tests/infer.test.ts:317:2
tests/infer.test.ts > InferObject handles multiple nullable fields: tests/infer.test.ts#L301
AssertionError: Expected values to be strictly equal: + actual - expected '{\n' + ' main: {\n' + + ' field1?: string | undefined\n' + + ' field2?: number | undefined\n' + + ' field3?: boolean | undefined\n' + - ' field1?: string | null | undefined\n' + - ' field2?: number | null | undefined\n' + - ' field3?: boolean | null | undefined\n' + ' }\n' + '}' - Expected + Received { main: { - field1?: string | null | undefined + field1?: string | undefined - field2?: number | null | undefined + field2?: number | undefined - field3?: boolean | null | undefined + field3?: boolean | undefined } } ❯ tests/infer.test.ts:301:2
tests/infer.test.ts > InferObject handles nullable optional field: tests/infer.test.ts#L287
AssertionError: Expected values to be strictly equal: + actual - expected + '{ main: { description?: string | undefined } }' - '{ main: { description?: string | null | undefined } }' Expected: "{ main: { description?: string | null | undefined } }" Received: "{ main: { description?: string | undefined } }" ❯ tests/infer.test.ts:287:2
tests/infer.test.ts > InferObject handles all required fields: tests/infer.test.ts#L267
AssertionError: Expected values to be strictly equal: + actual - expected + '{\n' + + ' main: {\n' + + ' field1?: string | undefined\n' + + ' field2?: number | undefined\n' + + ' field3?: boolean | undefined\n' + + ' }\n' + + '}' - '{\n main: {\n field1: string\n field2: number\n field3: boolean\n }\n}' - Expected + Received { main: { - field1: string + field1?: string | undefined - field2: number + field2?: number | undefined - field3: boolean + field3?: boolean | undefined } } ❯ tests/infer.test.ts:267:2
tests/infer.test.ts > InferObject handles mixed optional and required fields: tests/infer.test.ts#L230
AssertionError: Expected values to be strictly equal: + actual - expected '{\n' + ' main: {\n' + + ' id?: string | undefined\n' + + ' name?: string | undefined\n' + + ' age?: number | undefined\n' + ' email?: string | undefined\n' + - ' age?: number | undefined\n' + - ' id: string\n' + - ' name: string\n' + ' }\n' + '}' - Expected + Received { main: { - email?: string | undefined + id?: string | undefined + name?: string | undefined age?: number | undefined - id: string - name: string + email?: string | undefined } } ❯ tests/infer.test.ts:230:2
tests/infer.test.ts > InferArray handles unknown arrays: tests/infer.test.ts#L213
AssertionError: Expected values to be strictly equal: + actual - expected + '{ main: { items?: unknown[] | undefined } }' - '{ main: { items?: unknown[] } }' ^ Expected: "{ main: { items?: unknown[] } }" Received: "{ main: { items?: unknown[] | undefined } }" ❯ tests/infer.test.ts:213:2
tests/infer.test.ts > InferType handles bytes primitive: tests/infer.test.ts#L135
AssertionError: Expected values to be strictly equal: + actual - expected + '{\n main: { data?: Uint8Array<ArrayBufferLike> | undefined }\n}' - '{ main: { data?: Uint8Array | undefined } }' - Expected + Received - { main: { data?: Uint8Array | undefined } } + { + main: { data?: Uint8Array<ArrayBufferLike> | undefined } + } ❯ tests/infer.test.ts:135:2
tests/infer.test.ts > InferType handles boolean primitive: tests/infer.test.ts#L98
AssertionError: Expected values to be strictly equal: + actual - expected + '{\n' + + ' main: {\n' + + ' isActive?: boolean | undefined\n' + + ' hasAccess?: boolean | undefined\n' + + ' }\n' + + '}' - '{\n main: {\n isActive?: boolean | undefined\n hasAccess: boolean\n }\n}' - Expected + Received { main: { isActive?: boolean | undefined - hasAccess: boolean + hasAccess?: boolean | undefined } } ❯ tests/infer.test.ts:98:2