hipstersmoothie / react-docgen-typescript-plugin

A webpack plugin to inject react typescript docgen information
MIT License
68 stars 28 forks source link

Add test case for sub components (demonstrates invalid syntax in output) #60

Closed stevenpetryk closed 2 years ago

stevenpetryk commented 2 years ago

This PR is meant to demonstrate/add a test case for the invalid output described in #57. It stems from a bug in react-docgen-typescript where components that are assigned to properties of other components are given a name of default.Name.

The snapshot that gets generated by the test suite for this (valid) file contains a syntax error.

stevenpetryk commented 2 years ago

Just gonna close this, too messy. Fixing my fork.