Partial: how not to mock the whole world

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • react-magnetic-di

    Dependency injection and replacement for React components and hooks

  • or they could be state mock injected by jest.mock or any other force (I would recommend magnetic-di)

  • shoehorn

    Work seamlessly with partial mocks in TypeScript.

  • Yeah, the last line is 🤮 and one can improve it with utilities like shoehorn hiding all complexity underneath.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • msw

    Seamless REST/GraphQL API mocking library for browser and Node.js.

  • they could be network mocks (use msw)

  • partial-mock

    A solution for ⬆️over and ⬇️under mocking

  • That's it - partial mock helps with the "over-mocking", situations where you mock too much, and it also solves problems with the "under-mocking" where you missing some important pieces.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts