csdojo-defaang / defaang

A website that will curate recently-asked interview questions from FAANG+. Currently inactive. Check out: https://github.com/ykdojo/OpenStream
MIT License
505 stars 119 forks source link

test: Added Jest and React Testing Library #283

Closed RichardHpa closed 1 year ago

RichardHpa commented 1 year ago

➕ Changes Introduced

Adding Jest into project so people could start adding tests. Created a test for the Button component as an example

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
defaang ✅ Ready (Inspect) Visit Preview Oct 9, 2022 at 7:20AM (UTC)
subhoghoshX commented 1 year ago

Looks good, though I'm not sure about moving each component to its own folder.

RichardHpa commented 1 year ago

Looks good, though I'm not sure about moving each component to its own folder.

@subhoghoshX your already doing it with Header. It just means you keep everything to do with that component together. Ie you could have the component, test, types, styles (if applicable), assets, all together

RichardHpa commented 1 year ago

@subhoghoshX are you going to merge this in? Or do you want me to do some changes?