You are browsing as a guest. Sign up (or log in) to start making projects!

4h 9m 54s logged

Devlog #2: CRUD Routes & Vitest Unit Tests
Been fighting with Vitest on and off for two hours now 😢 but I’ve finally got it. Built a test for my hardFilter function, which removes systems in my database if they do not meet the base requirements. Included them for almost every parameter in my system requirements profile. The most difficult part was making it work with my cursed nested tables (thank you, Prisma) that I have connecting my computer parts to the systems that they are in. It was long and mostly copy-and-pasting the same tables over and over again, but it’s done and done well (I think/hope/pray).
CRUD routes are made, not implemented. For now, all I can do is query via GET route through my dev script, but hoping to be able to use them to manage my database through a frontend eventually.
Thanks for reading and happy coding!

0
16

Comments 0

No comments yet. Be the first!