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...msw
Dharshan kdharshan.hashnode.dev·May 30, 2024Accelerate React Development Using MSWThis blog provides a step-by-step instructions to add msw into your react app. Alright, lets jump on! Bootstrapping application Lets use Vite to setup our react app as it is the go to way of creating a react application as of today. Run the following...2 likes·34 readsJavaScript
Jonathan Galdinojonathangaldino.hashnode.dev·Mar 23, 2023Making integration tests easier with MSWMocking HTTP endpoints can be a useful technique when performing integration tests, as it can help isolate the behavior of the system under test and make the tests more reliable and faster. When you mock an HTTP endpoint, you replace the real endpoin...3 likes·840 readsTypeScript
Danil Hendra Suryawan1tab2spaces.dhsrlab.com·Dec 29, 2022Implementing API Mocking for Faster Frontend DevelopmentRecently I've been busy preparing a project for one of my college subjects. I'm in a team consisting of 5 people, 3 of them being a backend engineer, a web frontend engineer, and an Android engineer, with me in charge of the web frontend. We wanted t...3 likes·134 readsMocking
Cathal Mac Donnachacathalmacdonnacha.com·Dec 6, 2022FeaturedMocking Error, Empty and Loading states with MSWOne of the less exciting things about being a Frontend Developer is having to handle error, empty and loading states. It may not be the most fun thing to do, but it's necessary in order to give your users the best experience possible. Thankfully, Moc...22 likes·6.5K readsmsw
David Pengdavipon.hashnode.dev·Sep 19, 2022Svelte Component Test RecipesIn this blog post, we'll use vitest, @testing-library/svelte, and svelte-htm to test Svelte components that seemed to be hard to test. Such as two-way bindings, name slots, Context API, ...etc. As a Svelte advocate, the fantastic DX is one of the rea...11 likes·4.4K readsSvelteSvelte