onlook-dev / onlook

The open source, local-first Figma for React. Design directly in your live React app and publish your changes to code.
https://onlook.dev
Apache License 2.0
3.61k stars 219 forks source link

[FEAT] Add unit test coverage tracking #169

Closed Kitenite closed 1 month ago

Kitenite commented 2 months ago

Describe the feature

We have a few unit tests with bun but need a better idea of our test coverage.

We currently use bun-test for our unit test. Seems like Bun has some good options for test coverage tracking. Could you add some automatic test coverage options (even just a command in our package.json) or configuration? Up to your research on what is the best, most sustainable approach.

The end goal is to have an easy way to see our test coverage so that we can improve.

https://bun.sh/docs/test/coverage

vr-varad commented 2 months ago

@Kitenite I would like to work on this issue!! would u mind giving some more info regarding the issue

Kitenite commented 2 months ago

Hey @vr-varad , Great! I will assign this to you. We currently use bun-test for our unit test. Seems like Bun has some good options for test coverage tracking. Could you add some automatic test coverage options (even just a command in our package.json) or configuration? Up to your research on what is the best, most sustainable approach.

The end goal is to have an easy way to see our test coverage so that we can improve.

https://bun.sh/docs/test/coverage

Kitenite commented 1 month ago

@vr-varad how's it going? Do you need any support on this?

vr-varad commented 1 month ago

Almost Done, being in college was stuck with exams will make a pr by tomorrow @Kitenite hope u understand

Kitenite commented 1 month ago

No problem @vr-varad. Thanks for the update!