Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kooltheba/sundaes-testing-library-project
This is a Sundaes 🍨 online shop to practice with React Testing Library 😎
https://github.com/kooltheba/sundaes-testing-library-project
community-project mock-server msw react react-context-api react-hooks react-testing-library testing
Last synced: 8 days ago
JSON representation
This is a Sundaes 🍨 online shop to practice with React Testing Library 😎
- Host: GitHub
- URL: https://github.com/kooltheba/sundaes-testing-library-project
- Owner: KoolTheba
- Created: 2022-07-17T10:00:12.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T17:06:04.000Z (about 2 years ago)
- Last Synced: 2024-12-18T09:45:16.732Z (16 days ago)
- Topics: community-project, mock-server, msw, react, react-context-api, react-hooks, react-testing-library, testing
- Language: JavaScript
- Homepage:
- Size: 259 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sundaes Testing Library app
Cool Sundaes shop tested with [React Testing Library](https://testing-library.com/) and [Mock Service Worker](https://mswjs.io/).
If you want a project for practicing your testing skills, just clone this repo, get rid of all tests files and start testing! 🚀
## Dev mode
- As scoops and toppings options' server, I've used [this Sundae server](https://github.com/bonnie/udemy-TESTING-LIBRARY/tree/main/sundae-server)
- Clone it locally, and run `npm start` to have available the needed endpoints:
- `GET /scoops`
- `GET /toppings`
- `POST /order`## Available Scripts
### `npm start`
Runs the app in the development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.Don't forget to run simultaneously the server!
### `npm test`
Launches the test runner in the interactive watch mode.