I recently started to invest a lot of time in the npub.cash testing suite. It's a painful process as I am still new to test design and the original code was strongly coupled, but I am getting there.

Vitest comes with a UI that will let you inspect not only coverage, but also your codes module graph, which is a great help when trying to decouple.

Reply to this note

Please Login to reply.

Discussion

Writing tests is like workout or eating well or investing in yourself. It feels shitty before you do it but it feels amazing when you're done

I didn't know vitests could check for rust code

Those are .ts files haha, but I guess due to the compression of nostr.build I could now be mistaken for a real dev lmao

Damn, I was totally reading.rs at the endpoints🤣