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,...DiscussAWS Cloudaws-sdk-mock
Dmitrii Skrylevskrdev.hashnode.dev·Sep 29, 2024How to use Mocking Service Worker (MSW) for your JS POC demos.👉 Check out my project MudQuest the first real-time offroad enthusiast finder. Prerequisites Live Demo - give it a minute to load, I am using free hosting; GitHub Repo with an example - https://github.com/zhivou/msw-demo?tab=readme-ov-file; I a...Discussmsw
Jagsjagannath.dev·Sep 18, 2024Mastering API Testing: A Comparison of HAR Files and Mocking TechniquesWhen testing API interactions, you have two primary options: using HAR (HTTP Archive) files or mocking. Each method has its strengths and weaknesses, and the choice between them depends on your specific testing needs. Use HAR Files for: Complex, mul...DiscussPlaywrightMocking
Jagsjagannath.dev·Sep 18, 2024Mastering Playwright: Learn secure HAR-Based Mocking in PlaywrightTo start, you'll need to record all necessary network calls into a HAR (HTTP Archive) file. The process for doing so varies slightly depending on the browser you're using. Next, you'll want to sanitize your HAR file to remove any sensitive informatio...DiscussPlaywrightplaywright
Simon Crowesimoncrowe.hashnode.dev·Sep 7, 2024Python Testing Part 1: isolating external calls and minimising mocksMocks are a necessary evil in Python testing. If overused, they essentially become "change detectors", meaning that every time you refactor the implementation of your code, you must update the mocks too. Ideally, your tests should verify what your co...Discuss·30 readsPython
Marwane Chahoudmar1.hashnode.dev·Aug 20, 2024No Data, No Problem: Ingesting FAKE Data Might Increase Your Productivity 🚀🚀🚀Introduction Whether you join a data engineering project or start one from scratch with a team, you will surely face many problems. One common issue, which can sometimes be a major obstacle, is missing data! In a real-world project, your team often d...Discuss·10 likesdata-engineering
Chetan Patilchetanppatil.hashnode.dev·Jul 28, 2024Level Up Your Node.js Testing with Native Test Runner and Mocks: A BigQuery ExampleIn today’s software development, testing is not just good practice, it’s necessary, in my opinion. I’m excited to share some valuable insights on testing in Node.js! Through my own experiences, I’ve discovered some practical tips and techniques that ...DiscussNodeNativeTestRunner
Mehdi Jaimjdev.vercel.app·Jul 26, 2024Create Authentication system with NodeJS, ExpressJS, TypeScript and Jest E2E testing -- PART 4.GitHub Repo Part 1 Part 2 Part 3 Part 4 Testing We will implement End-to-End testing with Jest to test our API. We will test the email tokens as well, we will need those tokens to be able to test the API completely. For the testing we will use...DiscussNodeExpAPINode.js
Mohit Bhattcodymohit.com·Jul 10, 2024Mocking APIs: How to Simulate Backend Responses for TestingEver got stuck trying to test your app coz the backend aint ready? Or maybe the API you're depending on keeps acting up? Trust me, we've all been there. In this blog, we're diving into the world of mocking APIs – yep, you heard it right! We’ll uncove...Discuss·27 readsmocking api
jorzeljorzel.hashnode.dev·Jul 5, 2024How to Mock HTTP Servers with Prism and OpenAPI specsDistributed systems often rely on various dependencies that communicate using HTTP REST APIs. However, there are instances where we don't have access to the codebase of these services, or they are third-party systems. In such cases, we need a way to ...Discuss·26 readshttp