Auto-mocking using Cypress

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
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • cypress-cucumber-preprocessor

    Run cucumber/gherkin-syntaxed specs with Cypress

  • I used cypress-cucumber-preprocessor library to integrate Cucumber into Cypress testing.

  • Cypress

    Fast, easy and reliable testing for anything that runs in a browser.

  • So let me jump right into my solution. For this I am using an awesome end-to-end testing library called cypress.io, combined with Cucumber scenarios using Gherkin syntax. Please refer the documentation if you are new to Cypress as I will not be going through the basics.

  • 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
  • Express

    Fast, unopinionated, minimalist web framework for node.

  • For this, a developer usually replicates the data that the app consumes from a production environment to a local environment often known as mock data. There are several ways of serving mock data in a local host server, for example using a node server like express or a library like mockAPI. Either way one needs to have many local JSON files that need to be served in place of the response data coming from the API request.

  • Cucumber.js

    Cucumber for JavaScript

  • So let me jump right into my solution. For this I am using an awesome end-to-end testing library called cypress.io, combined with Cucumber scenarios using Gherkin syntax. Please refer the documentation if you are new to Cypress as I will not be going through the basics.

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