Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/donrestarone/react_tdd_template
a React template with Vite to help you hit the ground running with Test Driven Development.
https://github.com/donrestarone/react_tdd_template
Last synced: about 2 months ago
JSON representation
a React template with Vite to help you hit the ground running with Test Driven Development.
- Host: GitHub
- URL: https://github.com/donrestarone/react_tdd_template
- Owner: donrestarone
- Created: 2024-08-03T14:09:34.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T15:27:34.000Z (5 months ago)
- Last Synced: 2024-10-10T04:02:03.669Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React TDD Template
React app scaffolded by Vite, using the options here: https://vitejs.dev/guide/#scaffolding-your-first-vite-project## Getting started
install dependencies
``` bash
npm install
```start development server
``` bash
npm run dev
```## Doing Test Driven Development (TDD)
run all tests:
``` bash
npm run test
```run a subset of tests (eg: function tests):
``` bash
npm run test functions
```
run a subset of tests (eg: component tests):``` bash
npm run test components
```## Credits / References
1. Vitest with React Testing Library: https://victorbruce82.medium.com/vitest-with-react-testing-library-in-react-created-with-vite-3552f0a9a19a
2. https://www.robinwieruch.de/vitest-react-testing-library/
3. https://vitest.dev/guide/comparisons.html
4. https://vitejs.dev/guide/