Skip to content

feat: support react-docgen-typescript #594

feat: support react-docgen-typescript

feat: support react-docgen-typescript #594

Triggered via pull request January 22, 2025 09:17
@fi3eworkfi3ework
synchronize #223
rdt
Status Failure
Total duration 1m 38s
Artifacts

ci.yaml

on: pull_request
Matrix: test-build
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > TextOnlyComponent.tsx has code block generated: packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > TextOnlyComponent.tsx has code block generated 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ /** * A component with only text content wrapped in a div. * * Ref: https://github.com/strothj/react-docgen-typescript-loader/issues/7 */ - export const SimpleComponent: React.FC<{}> = () => ( + export const SimpleComponent: React.FC<Record<string, never>> = () => ( <div>Test only component</div> ) try { // @ts-ignore SimpleComponent.displayName = "SimpleComponent"; ❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
test-build (18.x, ubuntu-latest)
Process completed with exit code 1.
test-build (18.x, macos-14)
The job was canceled because "_18_x_ubuntu-latest" failed.
src/plugins/react-docgen-typescript/__tests__/index.test.ts > component fixture > TextOnlyComponent.tsx has code block generated: packages/framework-react/src/plugins/react-docgen-typescript/__tests__/index.test.ts#L61
Error: Snapshot `component fixture > TextOnlyComponent.tsx has code block generated 1` mismatched - Expected + Received @@ -4,11 +4,11 @@ /** * A component with only text content wrapped in a div. * * Ref: https://github.com/strothj/react-docgen-typescript-loader/issues/7 */ - export const SimpleComponent: React.FC<{}> = () => ( + export const SimpleComponent: React.FC<Record<string, never>> = () => ( <div>Test only component</div> ) try { // @ts-ignore SimpleComponent.displayName = "SimpleComponent"; ❯ src/plugins/react-docgen-typescript/__tests__/index.test.ts:61:19
test-build (18.x, macos-14)
The operation was canceled.
test-build (18.x, windows-latest)
The job was canceled because "_18_x_ubuntu-latest" failed.
test-build (18.x, windows-latest)
The operation was canceled.
test-build (18.x, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636