All my tests are passing in my Replit but when i submit its telling me that the 2nd test isnt right for some reason. This is the exact message im seeing:
the returned response should be the string missing required field title .
Didn’t test it but have you tried sending just the string as asked for and not an object?
As an aside, I would be a little careful about using 400 status codes with some of the challenges. I’m pretty sure some of the tests expect a 200 even when testing failing stuff. The test might do a fetch and expect an error response in the form of an error string or whatever. But it may still check its fetch call was successful by looking at the res.ok and failing the check because it gets back a 404.
Thank you! I tried implementing your suggestion but i was still getting the error. After trying other things i realized the issue was that my post wasn’t async.