Error succeeds on error

nodejs

#1

As you can see from the image, there is a missing file in my project, it responds with an error and the test should fail but I see the SUCCESS badge.


#2

NodeJS is still returning an exit code of 0, thus npm test is still being marked as success. The last line of that output explains why. More info here: https://www.contentful.com/blog/2016/11/02/node-v7-urls-deprecations-warnings-and-developer-experience/?utm_expid=73689344-0.7jVToJmRRa20-aIpwffJPQ.0#promise-rejection-handling-will-change-in-future


#3

That’s it. Thanks!


#4