Skip to content

fix: use of as ToZod instead of satisfies ToZod #593

fix: use of as ToZod instead of satisfies ToZod

fix: use of as ToZod instead of satisfies ToZod #593

Triggered via pull request January 9, 2025 13:48
Status Failure
Total duration 4m 35s
Artifacts

quality.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 4 warnings
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/BarrelManager.test.ts#L114
Expected: [ { "baseName": "index.ts", "exports": [ { "isTypeOnly": undefined, "name": [ "test", ], "path": "./test.ts", }, { "isTypeOnly": undefined, "name": [ "hello", ], "path": "./sub/hello.ts", }, { "isTypeOnly": undefined, "name": [ "world", ], "path": "./sub/world.ts", }, { "isTypeOnly": undefined, "name": [ "world", ], "path": "./sub/index.ts", }, { "isTypeOnly": undefined, "name": [ "hello", ], "path": "./sub/index.ts", }, ], "path": "src/index.ts", "sources": [ { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "test", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "hello", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "world", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "world", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "hello", "value": "", }, ], }, { "baseName": "index.ts", "exports": [ { "isTypeOnly": undefined, "name": [ "hello", ], "path": "./hello.ts", }, { "isTypeOnly": undefined, "name": [ "world", ], "path": "./world.ts", }, ], "path": "src/sub/index.ts", "sources": [ { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "hello", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "world", "value": "", }, ], }, ] Received: [ { "baseName": "index.ts", "exports": [ { "isTypeOnly": undefined, "name": [ "test", ], "path": "./test.ts", }, { "isTypeOnly": undefined, "name": [ "hello", ], "path": "./sub/hello.ts", }, { "isTypeOnly": undefined, "name": [ "world", ], "path": "./sub/world.ts", }, { "isTypeOnly": undefined, "name": [ "world", ], "path": "./sub/index.ts", }, { "isTypeOnly": undefined, "name": [ "hello", ], "path": "./sub/index.ts", }, ], "path": "src/index.ts", "sources": [ { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "test", "value": "", }, { "isExportable": false, "isIndexable": false, "isTypeOnly": undefined, "name": "hello", "value": "", }, { "isExportable": false, "isIndexable":
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/FileManager.test.ts#L102
Expected: [ { "value": "const file1 ='file1';", }, { "value": "const file1Bis ='file1Bis';", }, ] Received: [ { "value": "const file1 ='file1';", }, { "value": "const file1Bis ='file1Bis';", }, ] at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:102:26)
TypeError: expect(JSON.stringify(files: packages/core/src/FileManager.test.ts#L232
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:232:49)
TypeError: expect(JSON.stringify(fileManager.files: packages/core/src/FileManager.test.ts#L311
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:311:61)
TypeError: expect(JSON.stringify(files: packages/core/src/FileManager.test.ts#L353
at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:353:49)
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/FileManager.test.ts#L540
Expected: [ { "isExportable": undefined, "isIndexable": undefined, "isTypeOnly": false, "name": "test", "value": "const test = 3", }, { "isTypeOnly": false, "name": "Test", "value": "type Test = 2", }, ] Received: [ { "isExportable": undefined, "isIndexable": undefined, "isTypeOnly": false, "name": "test", "value": "const test = 3", }, { "isTypeOnly": false, "name": "Test", "value": "type Test = 2", }, ] at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:540:37)
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/FileManager.test.ts#L577
Expected: [ { "isTypeOnly": true, "name": undefined, "path": "./models", }, { "asAlias": true, "isTypeOnly": false, "name": "test", "path": "./models", }, ] Received: [ { "isTypeOnly": true, "name": undefined, "path": "./models", }, { "asAlias": true, "isTypeOnly": false, "name": "test", "path": "./models", }, ] at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:577:37)
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/FileManager.test.ts#L613
Expected: [ { "isTypeOnly": true, "name": "models", "path": "./models", }, { "isTypeOnly": true, "name": [ "Config", ], "path": "./models", }, ] Received: [ { "isTypeOnly": true, "name": "models", "path": "./models", }, { "isTypeOnly": true, "name": [ "Config", ], "path": "./models", }, ] at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/FileManager.test.ts:613:85)
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/utils/TreeNode.test.ts#L32
Expected: TreeNode { "children": [ TreeNode { "children": [ TreeNode { "children": [], "data": { "file": { "baseName": "test.ts", "meta": {}, "path": "src/test.ts", "sources": [], }, "name": "test.ts", "path": "src/test.ts", "type": "single", }, "parent": [Circular], }, TreeNode { "children": [ TreeNode { "children": [], "data": { "file": { "baseName": "hello.ts", "meta": {}, "path": "src/sub/hello.ts", "sources": [], }, "name": "hello.ts", "path": "src/sub/hello.ts", "type": "single", }, "parent": [Circular], }, TreeNode { "children": [], "data": { "file": { "baseName": "world.ts", "meta": {}, "path": "src/sub/world.ts", "sources": [], }, "name": "world.ts", "path": "src/sub/world.ts", "type": "single", }, "parent": [Circular], }, ], "data": { "file": undefined, "name": "sub", "path": "src/sub", "type": "split", }, "parent": [Circular], }, ], "data": { "file": undefined, "name": "src", "path": "src", "type": "split", }, "parent": [Circular], }, ], "data": { "file": undefined, "name": "", "path": "", "type": "split", }, "parent": undefined, } Received: TreeNode { "children": [ TreeNode { "children": [ TreeNode { "children": [], "data": { "file": { "baseName": "test.ts", "meta": {}, "path": "src/test.ts", "sources": [], }, "name": "test.ts", "path": "src/test.ts", "type": "single", }, "parent": [Circular], }, TreeNode { "children": [ TreeNode { "children": [], "data": { "file": { "baseName": "hello.ts", "meta": {}, "path": "src/sub/hello.ts", "sources": [], }, "name": "hello.ts", "path": "src/sub/hello.ts", "type": "single", }, "parent": [Circular], }, TreeNode { "children": [], "data": { "file": { "baseName": "world.ts", "meta": {}, "path": "src/sub/world.ts", "sources": [], }, "name": "world.ts", "path": "src/sub/world.ts", "type": "single", }, "parent": [Circular], }, ], "data": { "file": undefined, "name": "sub", "path": "src/sub", "type": "split", }, "parent": [Circular], }, ], "data": { "file": undefined, "name": "src", "path": "src",
error: expect(received).toMatchInlineSnapshot(expected): packages/core/src/utils/TreeNode.test.ts#L150
Expected: [ "", "src", "test.ts", "sub", "hello.ts", "world.ts", ] Received: [ "", "src", "test.ts", "sub", "hello.ts", "world.ts", ] at <anonymous> (/home/runner/work/kubb/kubb/packages/core/src/utils/TreeNode.test.ts:150:19)
Typecheck
Type of property 'parent' circularly references itself in mapped type '{ [k in keyof { [k in keyof { id?: ZodOptional<ZodNumber> | undefined; name?: ZodOptional<ZodString> | undefined; parent?: ZodOptional<ZodObject<..., "strict", ZodTypeAny, CategoryType, { ...; }>> | undefined; }]: { ...; }[k]["_input"]; }]: undefined extends { [k in keyof { ...; }]: { ...; }[k]["_input"]; }[k] ? nev...'.
Typecheck
Type of property 'parent' circularly references itself in mapped type '{ [k in keyof { id?: ZodOptional<ZodNumber> | undefined; name?: ZodOptional<ZodString> | undefined; parent?: ZodOptional<ZodObject<..., "strict", ZodTypeAny, CategoryType, { ...; }>> | undefined; }]: { ...; }[k]["_input"]; }'.
Typecheck
Type of property 'parent' circularly references itself in mapped type '{ id?: "id" | undefined; name?: "name" | undefined; parent?: any; }'.
Typecheck
Type of property 'parent' circularly references itself in mapped type '{ id?: ZodOptional<ZodNumber> | undefined; name?: ZodOptional<ZodString> | undefined; parent?: ZodOptional<ZodObject<..., "strict", ZodTypeAny, CategoryType, { ...; }>> | undefined; }'.
Typecheck
zod-pet-store#typecheck: command (/home/runner/work/kubb/kubb/examples/zod) /home/runner/setup-pnpm/node_modules/.bin/pnpm run typecheck exited (2)
Typecheck
Process completed with exit code 2.
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Tests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Typecheck
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636