Skip to content

add filter prop to APIReference component #972

add filter prop to APIReference component

add filter prop to APIReference component #972

Triggered via push October 3, 2024 07:39
Status Failure
Total duration 1m 0s
Artifacts

test.yml

on: push
build-and-test
48s
build-and-test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
src/utils/resolve-type.test.ts > processProperties > process generic properties: packages/renoun/src/utils/resolve-type.test.ts#L55
Error: Snapshot `processProperties > process generic properties 1` mismatched - Expected + Received @@ -89,21 +89,66 @@ { "context": "property", "defaultValue": undefined, "element": { "filePath": "test.ts", - "kind": "Reference", + "kind": "Object", + "name": "ExportedType", "position": { "end": { "column": 7, "line": 5, }, "start": { "column": 5, "line": 2, }, }, + "properties": [ + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "slug", + "position": { + "end": { + "column": 20, + "line": 3, + }, + "start": { + "column": 7, + "line": 3, + }, + }, + "text": "string", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "filePath", + "position": { + "end": { + "column": 24, + "line": 4, + }, + "start": { + "column": 7, + "line": 4, + }, + }, + "text": "string", + "value": undefined, + }, + ], "text": "ExportedType", }, "filePath": "test.ts", "isOptional": false, "isReadonly": false, ❯ src/utils/resolve-type.test.ts:55:33
src/utils/resolve-type.test.ts > processProperties > complex properties: packages/renoun/src/utils/resolve-type.test.ts#L190
Error: Snapshot `processProperties > complex properties 1` mismatched - Expected + Received @@ -2,21 +2,66 @@ { "arguments": [ { "context": "parameter", "filePath": "test.ts", - "kind": "Reference", + "kind": "Object", + "name": "ExportedType", "position": { "end": { "column": 7, "line": 5, }, "start": { "column": 5, "line": 2, }, }, + "properties": [ + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "slug", + "position": { + "end": { + "column": 20, + "line": 3, + }, + "start": { + "column": 7, + "line": 3, + }, + }, + "text": "string", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "filePath", + "position": { + "end": { + "column": 24, + "line": 4, + }, + "start": { + "column": 7, + "line": 4, + }, + }, + "text": "string", + "value": undefined, + }, + ], "text": "ExportedType", }, ], "context": "property", "defaultValue": undefined, @@ -592,21 +637,66 @@ { "arguments": [ { "context": "parameter", "filePath": "test.ts", - "kind": "Reference", + "kind": "Object", + "name": "ExportedType", "position": { "end": { "column": 7, "line": 5, }, "start": { "column": 5, "line": 2, }, }, + "properties": [ + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "slug", + "position": { + "end": { + "column": 20, + "line": 3, + }, + "start": { + "column": 7, + "line": 3, + }, + }, + "text": "string", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "filePath", + "position": { + "end": { + "column": 24, + "line": 4, + }, + "start": { + "column": 7, + "line": 4, + }, + }, + "text": "string", + "value": undefined, + }, + ], "text": "ExportedType", }, ], "filePath": "test.ts", "kind": "Generic", ❯ src/utils/resolve-type.test.ts:190:33
src/utils/resolve-type.test.ts > processProperties > intersection and union: packages/renoun/src/utils/resolve-type.test.ts#L1045
Error: Snapshot `processProperties > intersection and union 1` mismatched - Expected + Received @@ -19,11 +19,11 @@ "text": "string", "value": undefined, }, { "filePath": "test.ts", - "kind": "Intersection", + "kind": "Object", "name": "FillVariant", "position": { "end": { "column": 24, "line": 8, @@ -54,30 +54,36 @@ }, "text": "string", "value": undefined, }, { - "filePath": "test.ts", - "kind": "Reference", + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "color", "position": { "end": { - "column": 10, + "column": 25, - "line": 4, + "line": 3, }, "start": { - "column": 9, + "column": 11, - "line": 2, + "line": 3, }, }, - "text": "BaseVariant", + "text": "string", + "value": undefined, }, ], "text": "FillVariant", }, { "filePath": "test.ts", - "kind": "Intersection", + "kind": "Object", "name": "OutlineVariant", "position": { "end": { "column": 24, "line": 12, @@ -108,23 +114,29 @@ }, "text": "string", "value": undefined, }, { - "filePath": "test.ts", - "kind": "Reference", + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "color", "position": { "end": { - "column": 10, + "column": 25, - "line": 4, + "line": 3, }, "start": { - "column": 9, + "column": 11, - "line": 2, + "line": 3, }, }, - "text": "BaseVariant", + "text": "string", + "value": undefined, }, ], "text": "OutlineVariant", }, ], ❯ src/utils/resolve-type.test.ts:1045:33
src/utils/resolve-type.test.ts > processProperties > recursive types: packages/renoun/src/utils/resolve-type.test.ts#L1690
Error: Snapshot `processProperties > recursive types 1` mismatched - Expected + Received @@ -37,21 +37,65 @@ { "context": "property", "defaultValue": undefined, "element": { "filePath": "test.ts", - "kind": "Reference", + "kind": "Object", + "name": "SelfReferencedType", "position": { "end": { "column": 10, "line": 5, }, "start": { "column": 9, "line": 2, }, }, + "properties": [ + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "String", + "name": "id", + "position": { + "end": { + "column": 22, + "line": 3, + }, + "start": { + "column": 11, + "line": 3, + }, + }, + "text": "string", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "Reference", + "name": "children", + "position": { + "end": { + "column": 42, + "line": 4, + }, + "start": { + "column": 11, + "line": 4, + }, + }, + "text": "Array<SelfReferencedType>", + }, + ], "text": "SelfReferencedType", }, "filePath": "test.ts", "isOptional": false, "isReadonly": false, ❯ src/utils/resolve-type.test.ts:1690:33
src/utils/resolve-type.test.ts > processProperties > creates reference for external types: packages/renoun/src/utils/resolve-type.test.ts#L2137
Error: Snapshot `processProperties > creates reference for external types 1` mismatched - Expected + Received @@ -17,11 +17,64 @@ "context": "property", "defaultValue": undefined, "filePath": "test.ts", "isOptional": false, "isReadonly": false, - "kind": "Reference", + "kind": "Union", + "members": [ + { + "filePath": "node_modules/typescript/lib/lib.es5.d.ts", + "kind": "String", + "name": undefined, + "position": { + "end": { + "column": 4402, + "line": 4, + }, + "start": { + "column": 3482, + "line": 4, + }, + }, + "text": ""red"", + "value": "red", + }, + { + "filePath": "node_modules/typescript/lib/lib.es5.d.ts", + "kind": "String", + "name": undefined, + "position": { + "end": { + "column": 4402, + "line": 4, + }, + "start": { + "column": 3482, + "line": 4, + }, + }, + "text": ""blue"", + "value": "blue", + }, + { + "filePath": "node_modules/typescript/lib/lib.es5.d.ts", + "kind": "String", + "name": undefined, + "position": { + "end": { + "column": 4402, + "line": 4, + }, + "start": { + "column": 3482, + "line": 4, + }, + }, + "text": ""green"", + "value": "green", + }, + ], "name": "color", "position": { "end": { "column": 15, "line": 4, ❯ src/utils/resolve-type.test.ts:2137:19
src/utils/resolve-type.test.ts > processProperties > function arguments create reference to exported type aliases: packages/renoun/src/utils/resolve-type.test.ts#L2662
Error: Snapshot `processProperties > function arguments create reference to exported type aliases 1` mismatched - Expected + Received @@ -20,22 +20,65 @@ "context": "parameter", "defaultValue": undefined, "description": undefined, "filePath": "test.ts", "isOptional": false, - "kind": "Reference", - "name": "props", + "kind": "Object", + "name": "props", + "position": { + "end": { + "column": 37, + "line": 8, + }, + "start": { + "column": 21, + "line": 8, + }, + }, + "properties": [ + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "Number", + "name": "fontWeight", + "position": { + "end": { + "column": 22, + "line": 4, + }, + "start": { + "column": 3, + "line": 4, + }, + }, + "text": "number", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", - "position": { + "isOptional": false, + "isReadonly": false, + "kind": "Reference", + "name": "color", + "position": { - "end": { + "end": { - "column": 37, + "column": 16, - "line": 8, + "line": 5, - }, + }, - "start": { + "start": { - "column": 21, - "line": 8, - }, - }, + "column": 3, + "line": 5, + }, + }, + "text": "Color", + }, + ], "text": "TextProps", }, "returnType": "void", "text": "(props: TextProps) => void", }, ❯ src/utils/resolve-type.test.ts:2662:33
src/utils/resolve-type.test.ts > processProperties > default parameter values: packages/renoun/src/utils/resolve-type.test.ts#L2726
Error: Snapshot `processProperties > default parameter values 1` mismatched - Expected + Received @@ -22,22 +22,66 @@ "color": "red", }, "description": undefined, "filePath": "test.ts", "isOptional": false, - "kind": "Reference", + "kind": "Object", + "name": "props", + "position": { + "end": { + "column": 57, + "line": 6, - "name": "props", - "position": { + }, + "start": { + "column": 22, + "line": 6, + }, + }, + "properties": [ + { + "context": "property", + "defaultValue": "red", + "filePath": "test.ts", + "isOptional": true, + "isReadonly": false, + "kind": "String", + "name": "color", + "position": { - "end": { + "end": { - "column": 57, + "column": 17, - "line": 6, + "line": 2, - }, + }, - "start": { + "start": { - "column": 22, + "column": 3, + "line": 2, + }, + }, + "text": "string", + "value": undefined, + }, + { + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": true, + "isReadonly": false, + "kind": "Number", + "name": "fontSize", + "position": { + "end": { + "column": 21, - "line": 6, - }, - }, + "line": 3, + }, + "start": { + "column": 3, + "line": 3, + }, + }, + "text": "number", + "value": undefined, + }, + ], "text": "TextProps", }, "returnType": "void", "text": "function Text(props: TextProps): void", }, ❯ src/utils/resolve-type.test.ts:2726:33
src/utils/resolve-type.test.ts > processProperties > references locally exported generic arguments: packages/renoun/src/utils/resolve-type.test.ts#L3927
Error: Snapshot `processProperties > references locally exported generic arguments 1` mismatched - Expected + Received @@ -12,35 +12,69 @@ "line": 5, }, }, "properties": [ { - "arguments": [ - { - "context": "parameter", + "context": "property", + "defaultValue": undefined, + "filePath": "test.ts", + "isOptional": false, + "isReadonly": false, + "kind": "Union", + "members": [ + { "filePath": "test.ts", - "kind": "Reference", + "kind": "String", + "name": undefined, "position": { "end": { - "column": 66, + "column": 38, - "line": 3, + "line": 6, }, "start": { - "column": 25, + "column": 3, - "line": 3, + "line": 6, }, }, - "text": "(key: keyof typeof colors) => "red" | "blue" | "green"", + "text": ""red"", + "value": "red", + }, + { + "filePath": "test.ts", + "kind": "String", + "name": undefined, + "position": { + "end": { + "column": 38, + "line": 6, + }, - "type": "typeof getColor", - }, + "start": { + "column": 3, + "line": 6, + }, - ], + }, - "context": "property", - "defaultValue": undefined, - "filePath": "test.ts", + "text": ""blue"", + "value": "blue", + }, + { + "filePath": "test.ts", - "isOptional": false, - "isReadonly": false, - "kind": "Generic", + "kind": "String", + "name": undefined, + "position": { + "end": { + "column": 38, + "line": 6, + }, + "start": { + "column": 3, + "line": 6, + }, + }, + "text": ""green"", + "value": "green", + }, + ], "name": "color", "position": { "end": { "column": 38, "line": 6, @@ -48,11 +82,10 @@ "start": { "column": 3, "line": 6, }, }, - "text": "ReturnType<typeof getColor>", - "typeName": "ReturnType", + "text": ""red" | "blue" | "green"", }, ], "text": "TextProps", } ❯ src/utils/resolve-type.test.ts:3927:33
src/utils/resolve-type.test.ts > processProperties > imported type should not be parsed: packages/renoun/src/utils/resolve-type.test.ts#L4661
Error: Snapshot `processProperties > imported type should not be parsed 1` mismatched - Expected + Received @@ -23,22 +23,45 @@ "initialCount": 0, }, "description": undefined, "filePath": "test.ts", "isOptional": false, - "kind": "Reference", - "name": undefined, + "kind": "Object", + "name": undefined, + "position": { + "end": { + "column": 98, + "line": 1, + }, + "start": { + "column": 62, + "line": 1, + }, + }, + "properties": [ + { + "context": "property", + "defaultValue": 0, + "filePath": "types.ts", + "isOptional": true, + "isReadonly": false, + "kind": "Number", + "name": "initialCount", - "position": { + "position": { - "end": { + "end": { - "column": 98, - "line": 1, + "column": 53, + "line": 1, - }, + }, - "start": { + "start": { - "column": 62, + "column": 32, - "line": 1, + "line": 1, - }, + }, - }, + }, + "text": "number", + "value": undefined, + }, + ], "text": "CounterOptions", }, ], "returnType": "void", "text": "function useCounter(CounterOptions): void", ❯ src/utils/resolve-type.test.ts:4661:19
src/utils/resolve-type.test.ts > processProperties > imported function return types should not be parsed: packages/renoun/src/utils/resolve-type.test.ts#L4731
Error: Snapshot `processProperties > imported function return types should not be parsed 1` mismatched - Expected + Received @@ -23,11 +23,11 @@ "initialCount": 0, }, "description": undefined, "filePath": "test.ts", "isOptional": false, - "kind": "Reference", + "kind": "Object", "name": undefined, "position": { "end": { "column": 117, "line": 1, @@ -35,10 +35,33 @@ "start": { "column": 66, "line": 1, }, }, + "properties": [ + { + "context": "property", + "defaultValue": 0, + "filePath": "types.ts", + "isOptional": false, + "isReadonly": false, + "kind": "Number", + "name": "initialCount", + "position": { + "end": { + "column": 56, + "line": 1, + }, + "start": { + "column": 41, + "line": 1, + }, + }, + "text": "number", + "value": undefined, + }, + ], "text": "{ initialCount: number; }", }, ], "returnType": "void", "text": "function useCounterOverride({ initialCount: number; }): void", ❯ src/utils/resolve-type.test.ts:4731:19
build-and-test
The following actions uses node12 which is deprecated and will be forced to run on node16: pnpm/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build-and-test
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/[email protected], actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build-and-test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-and-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build-and-test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/