Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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/