navigation-api
msw
navigation-api | msw | |
---|---|---|
3 | 159 | |
488 | 16,199 | |
0.6% | 1.3% | |
4.6 | 9.2 | |
over 1 year ago | 7 days ago | |
Makefile | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
navigation-api
-
Idea: Web standard for a "secure client-side app mode" that would prevent page from making any network requests after initial load
https://github.com/virtualstate/navigation https://github.com/WICG/navigation-api
-
SPAs: theory versus practice
i mean, i know nothing about those projects but the share a similar issue. they're not the browser itself... vue-router-back-button, for example, has gotten 2 updates in the last 3 months. the other projects are all based off code that i can't imagine being as good as https://github.com/WICG/navigation-api... i'm sure they have open issues and have made specific choices and compromises to be useable for most use cases.
- Proposed App History API Renamed Navigation API
msw
- Tech Stack 2025
-
Testing Troubles with Jest and ESM and how to fix it
One of the core functionalities I wanted to test involved integrating with the Gemini API. Since I didn’t want to rely on the live API for testing, I decided to mock the API calls. Initially, I tried using Nock, but I ran into issues because it didn’t work well with Node’s default fetch implementation. It seemed that the Gemini library was using the default fetch instead of a third-party fetch implementation, which caused the mock to fail. After several attempts without success, I switched to another library called MSW (Mock Service Worker). Although it required a bit more setup to create a mock server, it worked flawlessly on the first try. I crafted an example response based on how the Gemini API would respond, which allowed me to test the refactored functionality.
-
Server Side Mocking for Playwright in NextJS (App Router) using Mock Service Worker
Mock Service Worker (MSW) could not mock Server Side calls in NextJS 14 when using App Router. NextJS 15 has fixed that.
-
The ultimate Electron app with Next.js and React Server Components
P.P.S. MSW is a bit overkill and is used for different purposes, like other HTTP mocking libraries.
-
Push to production on Fridays
This method of testing was inspired by the fantastic work of developers who have created invaluable tools and resources for the community. Special thanks to Kent C. Dodds for revolutionizing UI testing with Testing Library and for his extensive educational content. A heartfelt shoutout to Artem Zakharchenko for developing MSW, which greatly simplifies mocking network calls. Another huge thanks to the team behind Faker that allows us to create production-like datasets with ease.
-
Zustand adoption guide: Overview, examples, and alternatives
Zustand supports the Jest and Vitest test runners to mock and test your store. If your store makes network requests, Mock Service Worker (MSW) is an efficient library to intercept the network requests and return data for your assertions.
-
Building Progressive Web Applications using SvelteKit
Consider a service worker to be a middleman between your client and servers, capable of handling all requests passed between them. You might have come across mock service workers, which let you test through several situations. Service providers have enormous power that allows a broad spectrum of possibilities. To simplify the use of service workers, SvelteKit requires only the inclusion of a service-worker.js file in the source directory. It automatically handles the registration process, thereby eliminating the need for manual registration that is typically required with other systems. This simplified strategy replaces the need for outside libraries to support this process.
-
Integration testing of Redux-components with MSW
I recently started working on integration tests for a React application with Redux-connected components, specifically Redux-Toolkit. I quickly learned a common tool to use is the Mock Service Worker (MSW) library to mock network requests; this library allows you to intercept outgoing network requests and mock their responses making it super easy to test the implementation details of your components.
-
Visual Introduction to Frontend Testing Types
Mock Service Worker - https://mswjs.io/ (Mocking the API Responses in the browser without creating a separate mock server)
-
Modern React testing, part 5: Playwright
We’re going to use Mock Service Worker (MSW) for mocking network requests in our integration tests and in the app during development.
What are some alternatives?
view-transitions
Nock - HTTP server mocking and expectations library for Node.js
navigation - Native JavaScript navigation [web api] implementation
rtk-query - Data fetching and caching addon for Redux Toolkit
SvelteKit - web development, streamlined
miragejs - A client-side server to build, test and share your JavaScript app
Next.js - The React Framework
mockoon - Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.
Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]
prism - Turn any OpenAPI2/3 and Postman Collection file into an API server with mocking, transformations and validations.
json-server - Get a full fake REST API with zero coding in less than 30 seconds (seriously)
axios - Promise based HTTP client for the browser and node.js