https://github.com/subraatakumar/vite-react-jest
https://github.com/subraatakumar/vite-react-jest
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/subraatakumar/vite-react-jest
- Owner: subraatakumar
- Created: 2024-08-18T03:33:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T07:31:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-26T23:58:28.029Z (over 1 year ago)
- Language: JavaScript
- Size: 169 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React + Vite + Jest
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
In addition to this Jest configuration is added.
## Features
- Runs prettier code formatting during commit
- added jest and sample test file in example folder
## How to use it
- Clone it
```bash
git clone https://github.com/subraatakumar/vite-react-jest.git my-react-app
```
use your own app name in place of my-react-app
```bash
cd my-react-app
npm install
```
## Running Example
Sample components and test files are updated with in example folder.
To run these test examples
```bash
npm run test
```
To learn more visit example folder
## Ensure test cases during commit
- To ensure test cases during commit please uncomment the second line `.husky/pre-commit`
- You can add other commands as per your requirement
## To bypass husky during commit
- This step is not advisible
```bash
git commit --no-verify -m "commit message"
```