https://github.com/mayashavin/pizza-store-demo-react
https://github.com/mayashavin/pizza-store-demo-react
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mayashavin/pizza-store-demo-react
- Owner: mayashavin
- Created: 2024-05-22T09:18:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T21:46:51.000Z (about 2 years ago)
- Last Synced: 2026-06-04T10:21:00.015Z (18 days ago)
- Language: JavaScript
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pizza demo project for component testing
This project is a demo project to show how to compare different component testing frameworks. The frameworks that are compared are:
- [Vitest](https://vitest.io)
- [Playwright](https://playwright.dev/docs/test-components)
The demo project is a simple pizza ordering React application, designed for my talk **"We may not need component (unit) testing"**.
## Talk slides
The slides for the talk can be found [here](https://drive.google.com/file/d/1Xn0NCdkOMomF9XGMQu3ZFqELQkVnZVe1/view?usp=sharing).
## How to run the project
1. Clone the project
2. Run `yarn`
3. Run unit tests by Vitest: `yarn test:unit`
4. Run component tests by Playwright with UI: `yarn test-ct`
## Other resources
- [Pizza store project in Vue](https://github.com/mayashavin/pizza-store-demo)