Forem

kealanheena
kealanheena

Posted on • Edited on

1

Job Search Week 19

This week I worked on another API thoroughly testing it with Jest and supertest. I found jest easy to use and I think I'll use it from now on.

Day 1

I had started this project over the weekend so I had got a little bit of it done already. On Monday I connected the project to the database and started debugging using a VScode extension "Jest Runner" I was able to use the breakpoints to view the code at certain stages of the test which made debugging a lot easier.

Day 2

On Tuesday I started with a test for error handling using a try/catch block as well as adding a middleware for the error message. I also added the getAllTodos function for the todos, I had already done the post function over the weekend.

Day 3

I decided to update some of my readmes and my projects guide repo on Wednesday to show off some of the other projects I've been doing. Next week I'm gonna be doing job applications so it's best to be prepared.

Day 4

I then handle the getTodoById function adding in the error handling for if you try to get a todo with an invalid ID. I was quite familiar with Jest at this point as some of the tests were quite similar.

Day 5

On Friday I continued working on my todo API adding the update function for while making sure it was returning soon and errors were being caught and displayed.

Summary

Overall I was happy with this week I'm significantly more comfortable using jest and I'm confident to start building a full-stack project using an API. Next week I plan to do a lot of cover letters and job applications.

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay