Posts

Showing posts from August, 2022

How to choose which validator to use: a comparison between Joi & express-validator

   Envision you have  a web based business site and you're permitting clients to make accounts utilizing their name and email. You need to ensure they join with genuine names, not something like cool_dud3. That is where we use approval to approve information sources and ensure input information keeps specific guidelines. On the lookout, we as of now have a lot of approval libraries, yet I will analyze two significant approval libraries: Joi and express-validator for express.js based applications. This examination is valuable when you have chosen to involve outer info approval library for your application based on expressjs and are to some degree not certain which one to utilize. Who is what? Joi Joi permits you to make plans or constructions for JavaScript objects (an article that stores data) to guarantee approval of key data. Express-validator express-validator is a bunch of express.js middlewares that wraps validator.js validator and sanitizer capabilities. So by definition, we

How to automate website performance regression testing

  In another post I went over how to analyze website performance using Lighthouse, and specifically how we can automate performance monitoring with Foo’s Automated Lighthouse Check. In this post I’m going to demonstrate how we can step it up a notch by regression testing performance… automagically 🔮. What is Regression Testing? Regression Testing is a type of software testing to confirm that a recent program or code change has not adversely affected existing features. Adhering to best practice could include the below. Maintain a Strict Testing Schedule: Always maintain a continual testing schedule throughout the entire software development life cycle. Not only will this quickly force the team to adapt to a frequent testing regimen, it will also ensure the finished product is as well-tested as possible. Use Test Management Software: Unless your current software project is a simple self-developed side project, chances are you’ll have such an abundance of tests that tracking each will be