plotly / dash-component-boilerplate

Get started creating your own Dash components here.
275 stars 184 forks source link

Add `ignore` to build:backends to aid discovery #138

Closed ryanand26 closed 2 years ago

ryanand26 commented 2 years ago

react-docgen is set to run against all jsx and js files in extract-meta.js, as a result any Jest test files will throw warnings.

The boilerplate was my entrypoint to dash-generate-components so it took me an embarrassingly long time to find the ignore option.

This PR adds an example ignore pattern of a common Jest test filename pattern. Hopefully it also would give users a starting point to setup their own ignore without having to determine the format / escaping.

The more complex Jest default is here: https://jestjs.io/docs/configuration#testmatch-arraystring

Any question or concerns please just let me know, especially if I'm missing a part of your PR process. Cheers!