Testing protected routes
If we try and run our unit tests, now, you'll see our POST /items tests fail. This is because we've now protected the item routes and are now getting 401 Unauthorized errors.
Similar to our Postman requests, we're going to need to update the tests ensure an admin user is being used.
Click to load comments...