examples
puppeteer-request-mocker
Our great sponsors
examples | puppeteer-request-mocker | |
---|---|---|
2 | 1 | |
636 | 11 | |
2.5% | - | |
6.7 | 0.0 | |
7 days ago | over 1 year ago | |
JavaScript | JavaScript | |
- | - |
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.
examples
-
How we use Apollo to manage GraphQL data in our React Typescript application
Did you evaluate mock-service-worker? It's a good solution to mocking API requests. When it executes in the browser it uses a service worker to intercept requests, and when it executes in node (e.g. unit tests) it patches the http.Request methods to effectively do the same. Here's an example for mocking Apollo: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo
-
Beginners Thread Easy Questions February 2021
I use https://mswjs.io/, here is also an example project that can become handy: https://github.com/mswjs/examples/tree/master/examples/graphql-react-apollo . Reading this article could also help: https://kentcdodds.com/blog/stop-mocking-fetch
puppeteer-request-mocker
-
Testing React App With Jest & Puppeteer
Here's a library that provides puppeteer request mocking functionality along with concise documentation.
What are some alternatives?
open-api-mocker - A mock server based in OpenAPI Specification
cacheable-request - Wrap native HTTP requests with RFC compliant cache support
testing-nestjs - A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and more!
ky-universal - Use Ky in both Node.js and browsers
contentful-graphql-vs-rest - A look at the difference between how to fetch and render linked assets and entries in the Rich Text field in Contentful.
anvil-e-signature-api-node-example - An example app used to showcase Anvil Etch E-Signature API using the node-anvil client.
Strapi - 🚀 Strapi is the leading open-source headless CMS. It’s 100% JavaScript/TypeScript, fully customizable and developer-first.
axios-interceptor - It's axios interceptor hook to reduce developer effort for configuring api interceptor.
azure-pipelines-monorepo - Example of a multi-pipeline monorepo with Azure Pipelines
just-api - :boom: Test REST, GraphQL APIs
flexF - Axios flex fetch
wretch - A tiny wrapper built around fetch with an intuitive syntax. :candy: