nodejs
javascript
testing
npm
styleguide
express
microservices
rest
mocha
types
eslint
es6
jest
style-guide
best-practices
expressjs
node-js
nodejs-development
-
Updated
Mar 9, 2022 - JavaScript
I managed to find a way to fail-fast the validation chain with bail, but what about failing fast the middleware list?
Say, I have
If the name validation fails, I don't care to check phoneNumber anymore... Wasn't able to find a way to fail fast in this case. In the case