eduardconstantin / storybook-gpt

Storybook GPT is a web application for generating Storybook stories from React components using OpenAI API
https://storybook-gpt.vercel.app
MIT License
25 stars 17 forks source link

[Feature] Write unit tests #7

Open eduardconstantin opened 1 year ago

eduardconstantin commented 1 year ago

Is your feature request related to a problem? Please describe. This web app doesn't have any unit test written.

Describe the solution you'd like Use jest to write some unit tests. It does not have to be 100% coverage, new issues can be created to improve it.

Pinaka-Pani-18 commented 1 year ago

I don't know about testing. Can you provide me with some guidance and references so that I can learn and address this issue? At least, I will learn something.

eduardconstantin commented 1 year ago

You need to install jest first - https://jestjs.io Then you can create a test folder to have a place for all the tests You can find here some tests I wrote for the components You can try to write a test for the theme switcher

taran1326 commented 1 year ago

Hey I know somewhat of jest and I can write some tests , can you assign me the issue ?

eduardconstantin commented 1 year ago

@taran1326 how are the tests going?

Prithwi32 commented 1 month ago

@eduardconstantin i would like to learn and work on this issue, could u assign me under hacktoberfest and guide me to learn

eduardconstantin commented 1 month ago

@eduardconstantin i would like to learn and work on this issue, could u assign me under hacktoberfest and guide me to learn

check this https://github.com/eduardconstantin/storybook-gpt/issues/7#issuecomment-1763482666