hipstersmoothie / react-docgen-typescript-plugin

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

Demonstrate invalid syntax when using sub components #61

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.