Skip to content

Simple app to demonstrate testing scenarios with RTL and MSW

Notifications You must be signed in to change notification settings

erichartline/rtl-demo

Repository files navigation

RTL Demo

This is a Next.js app to demonstrate common app scenarios and how they can be tested with react-testing-library and msw.

  1. HelloWorld - basic component rendering
  2. TodoList - user interactivity with input field, submit button and new data added to page
  3. CitiesList - data fetching component that uses msw for displaying mock data

Local Development

To start the app, run npm run dev. To run the tests, run npm run test.

About

Simple app to demonstrate testing scenarios with RTL and MSW

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published