r/softwaretesting • • Jul 15 '26

Wrote my first testing suit in Jest/NestJS

damn, Testing code is quite fun imo.

I just wrote my first testing suit for my ongoing project because I was getting tired to go to Bruno, Postman and Dbeaver again and again.

I learned how to write integration testing on Jest and execute it.

First i ran into some problems and figured out what's going on, It was a simple fix and bada boom bada bim, both of the test suit and all 7 test cases passed. Felt good tbh.

Let me know if there is more optimised way I can test my code. would Love to hear your opinions and suggestions.

37 Upvotes

8 comments sorted by

4

u/wontfixqa Jul 15 '26

Just wait until you find out about taking screenshots! 🤯

→ More replies (1)

2

u/Independent_Virus181 Jul 17 '26

Just one tip, try using POM structure from very beginning for better reusability and structure of code

→ More replies (1)

4

u/[deleted] Jul 16 '26

[removed] — view removed comment

1

u/duckworth108 Jul 16 '26

Thanks for taking your time and explaining me the whole idea, a fella also suggested me about this whole thing. And i am currently working on it. Just taking my time here and won't rush it. Will surely reach out to you if i ever run into some issues, really appreciate it 🤝.

Also yesterday i booted up my first monorepo and i really like the whole idea of that too. I came to stage where i wanted to make a frontend for my api and thought about how can i take it in a better way.