Skip to content

start with broken tests #13

start with broken tests

start with broken tests #13

Triggered via pull request October 12, 2025 06:20
Status Failure
Total duration 21s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

19 errors
Type Check
Process completed with exit code 2.
Type Check: src/tests/infer.test.ts#L810
Type 'ObjectResult<{ views: LexiconItem & { type: "integer"; }; likes: LexiconItem & { type: "integer"; }; shares: LexiconItem & { type: "integer"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L803
Type 'ObjectResult<{ did: StringOptions & { type: "string"; }; handle: StringOptions & { type: "string"; }; avatar: LexiconItem & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L735
Argument of type 'ObjectResult<{ id: { required: true; } & { type: "string"; }; name: { required: true; } & { type: "string"; }; }>' is not assignable to parameter of type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L701
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L700
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L699
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
Type Check: src/tests/infer.test.ts#L674
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; email: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
Prettier
Process completed with exit code 1.
src/tests/infer.test.ts > InferRef handles basic reference: src/tests/infer.test.ts#L448
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 } } ❯ src/tests/infer.test.ts:448:2
src/tests/infer.test.ts > InferObject handles mixed nullable, required, and optional: src/tests/infer.test.ts#L422
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 } } ❯ src/tests/infer.test.ts:422:2
src/tests/infer.test.ts > InferObject handles nullable and required field: src/tests/infer.test.ts#L404
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 } }" ❯ src/tests/infer.test.ts:404:2
src/tests/infer.test.ts > InferObject handles multiple nullable fields: src/tests/infer.test.ts#L383
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 } } ❯ src/tests/infer.test.ts:383:2
src/tests/infer.test.ts > InferObject handles nullable optional field: src/tests/infer.test.ts#L366
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 } }" ❯ src/tests/infer.test.ts:366:2
src/tests/infer.test.ts > InferObject handles all required fields: src/tests/infer.test.ts#L341
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 } } ❯ src/tests/infer.test.ts:341:2
src/tests/infer.test.ts > InferObject handles mixed optional and required fields: src/tests/infer.test.ts#L294
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 } } ❯ src/tests/infer.test.ts:294:2
src/tests/infer.test.ts > InferArray handles unknown arrays: src/tests/infer.test.ts#L272
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 } }" ❯ src/tests/infer.test.ts:272:2
src/tests/infer.test.ts > InferType handles bytes primitive: src/tests/infer.test.ts#L174
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 } + } ❯ src/tests/infer.test.ts:174:2
src/tests/infer.test.ts > InferType handles boolean primitive: src/tests/infer.test.ts#L124
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 } } ❯ src/tests/infer.test.ts:124:2