Skip to content

Sample react project to demonstrate how we can stub APIs by leveraging their OpenAPI specifications with Specmatic in Jest UI component testing.

Notifications You must be signed in to change notification settings

vishal07111998/specmatic-order-ui-react

 
 

Repository files navigation

React Jest UI Component Testing with Specmatic

This project demonstrates stubbing APIs with Specmatic by leveraging their OpenAPI sepcifications in Jest UI Component Tests.

Running the app

npm start

Running UI Component Tests

npm test

FAQs

1. Error ReferenceError: setImmediate is not defined

This happens due to an issue in Jest. The easiest solution is to import core-js in the affected test file.

About

Sample react project to demonstrate how we can stub APIs by leveraging their OpenAPI specifications with Specmatic in Jest UI component testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.3%
  • CSS 18.6%
  • HTML 4.1%