/rxjs_react_chat

A React chat application with RxJS for state management

Primary LanguageJavaScript

This fork is used to show an example of Integration Testing with Cypress.

Cypress setup

Follow instructions (here)[https://docs.cypress.io/guides/getting-started/installing-cypress#Opening-Cypress].

or

yarn add cypress --dev

Write an integration test

Here we will test Person1 and Person2 exchanging messages through the chatbot. Person1 will send Hello! and Person2 will respond Coucou!.

Run the integration test with Cypress

  • Setup dependencies yarn
  • Start the app locally (pre-requisite) yarn start Note: .env with SKIP_PREFLIGHT_CHECK=true was created
  • Open cypress dashboard npx cypress open and run test cypress/integration/sendMessages.spec.js interactively

or

  • Run yarn cypress:test

Original readme

This app was built from Ebenezer Don article on RxJS with React Hooks for state management

Link to hosted app: rxjs-react-chat