Skip to content

App template for new projects with Vite, React, Typescript, and Jest pre-configured.

Notifications You must be signed in to change notification settings

liam-koh/vite-react-typescript-jest

 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License LinkedIn

Ready-to-use template for new projects using Vite, React, Typescript and Jest

About

Setting up Jest with Vite and Typescript can be tricky and time-consuming - I created this template to be able to set up my own new projects quickly. I used a combination of articles and documentation to put this together, linked below - some of the info in these is partially out-of-date at this point, or needed customizing to work. The interaction between and development of these projects (Vite and Jest, etc) is constantly evolving, so refer to these links with that in mind and expect that over time, adjustments to this repo will likely be needed.

Prerequisites

Node.js version 12.2.0 or higher installed on your machine.

Yarn package manager version 1.22.0 or higher installed on your machine.

Installation

To get a local copy up and running, follow these simple steps.

Clone the repo:

git clone https://github.com/sharoncraddock/vite-react-typescript-jest.git

Install packages with yarn:

yarn

Acknowledgments

Special appreciation to Manny, who wrote this excellent Medium article in 2021 showing the errors you will encounter doing this from scratch, why they occur, and how to solve them. A bit out of date now (sorry Manny!) but was still super helpful and thorough.


Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star if it helped you! Thanks!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License.

About

App template for new projects with Vite, React, Typescript, and Jest pre-configured.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 71.0%
  • TypeScript 26.4%
  • JavaScript 1.7%
  • HTML 0.9%