Hi :)
In my project there is a .test.js for every source file.
I'm using react-doc-generator following way:
./node_modules/.bin/react-doc-generator components/ -o COMPONENTS.md -t \"All Components\" -e \.test\.js
I tried \\.test\\.js, *.test.js etc but nothing works, allways *.test.js fies are included:
┌────────────────────────────────────────────────────────────────────┬────────────┬────────────────────────────────────────────────────┐
│ Path │ Components │ Status │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\AdvancedPhotoCapture\AdvancedPhotoCapture.js │ 1 │ OK. │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\AdvancedPhotoCapture\AdvancedPhotoCapture.test.js │ 0 │ You have to export at least one valid React Class! │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\Alert\Alert.js │ 1 │ OK. │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\Alert\Alert.test.js │ 0 │ You have to export at least one valid React Class! │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\AltValues\AltValues.js │ 1 │ OK. │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\AltValues\AltValues.test.js │ 0 │ You have to export at least one valid React Class! │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\Animate\Animate.js │ 1 │ OK. │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
│ components\Animate\Animate.test.js │ 0 │ You have to export at least one valid React Class! │
├────────────────────────────────────────────────────────────────────┼────────────┼────────────────────────────────────────────────────┤
Any idea how can I fix it?
Hi :)
In my project there is a
.test.jsfor every source file.I'm using react-doc-generator following way:
I tried
\\.test\\.js,*.test.jsetc but nothing works, allways *.test.js fies are included:Any idea how can I fix it?