Waleed Javedwaleed.hashnode.dev·Oct 25, 2024Testing Lambda Functions Locally with Mocha & Chai for Integration ReadinessTo ensure thorough testing of AWS Lambda functions locally, especially to catch integration issues before deploying to QA or production, you can use a combination of tools, libraries, and practices. Here's a step-by-step guide on how to achieve this,...AWS Cloudaws-sdk-mock
Rajat Guptarajatgupta.net·May 29, 2024How to setup different database for development and testing in NodeJSObviously we do not want to mess up our development and test data and hence want to setup a different database for both the purposes. I faced this issue when performing unit and integration testing in my node application using chai and mocha. Below a...1 like·77 readsmocha
Piyushpiyusss.hashnode.dev·Apr 22, 2024React with meReact is a free front-end JavaScript library for building user interfaces based on components. Libraries are little better than frameworks in my opinion for beginners as it more beginner friendly, frameworks are quite strict and throws error for even...reactwithchai
Aaron Rebeloaaronr2023.hashnode.dev·May 20, 2023Hardhat - Understanding the basicsWhat we'll be covering in this article? Setting up Hardhat Compilation Testing Debugging Deployment And much more ... Hardhat is a developer environment, to compile,deploy, test and debug your etherium software in a easy way. Even though we h...hardhat
Fandy Aditya Wiranadev.fandyaditya.com·Apr 25, 2023Unit Testing using Mocha, Sinon, and Chai in NodeJSWe use Mocha as the test framework, Chai for assertions, and Sinon.js for creating Doubles. Here's the code for installation: $ npm install sinon mocha chai --save-dev --save-dev is used because these modules are only needed during development. We d...75 readsunit testing
ajeet achalachaltechnologies.hashnode.dev·Apr 20, 2023Chai and Coders: A Special RelationshipAs a language model, I have interacted with many programmers and coders over the years. One thing I have noticed is that many of them seem to have a special relationship with chai, also known as tea. Whether it's a comforting drink during long coding...12 likes·58 readscoder
Karan CSkaranblog.hashnode.dev·Apr 10, 2023Write integration tests like a pro (Node,Express,MongoDB,chai)Sure, here is a blog post on backend integration testing with Node.js, Express, and MongoDB. Introduction Integration testing is an important part of any backend web development process. It is the process of testing how the different components of a ...10 likesintegration
Miguel Angel Acevedofaultydev.hashnode.dev·Jan 4, 2023pg-mem and uuid_generate_v4() mockpg-mem is an open-source project for javascript (works in Node.js and the browser) where you can mock a Postgres server in memory, is pretty cool to use it on unit and local tests. And it comes with its own limitations, by default, pg-mem has no nati...154 readsPostgreSQL
Gaurav SinghforRoaming Devblog.roamingdev.com·Nov 27, 2022API Testing with Mocha, Chai and Supertest in NodeJs.Introduction Testing is essential today for building a robust application that may change frequently or extend later if you are learning Test Driven Development or looking to add API test cases in the backend, which may improve the debugging and test...402 readsSupertest
Andy Woodandynwood.hashnode.dev·Oct 2, 2022How to Learn Unit Testing Using CodewarsMany engineering teams value good software testing and there are a range of good testing suites available to full-stack engineers, but it can be difficult for entry-level engineers to get started on this and to work out ways to integrate this into th...14 likes·229 readsTesting