Skip to content

The "React TypeScript Minimal + Jest πŸš€" project provides a lightweight setup for developing React applications with TypeScript, efficient compilation using Esbuild, and reliable testing with Jest and React Testing Library. Streamline your development process with this ready-to-use framework.

Notifications You must be signed in to change notification settings

saulocastillos/react-typescript-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

React TypeScript Minimal + Jest πŸš€

The "React TypeScript Minimal + Jest" project is a minimal React application configured with TypeScript, Esbuild for compilation, and Jest for testing. It provides a simple and ready-to-use structure, enabling efficient development of React applications and testing using Jest and React Testing Library.

Prerequisites πŸ› οΈ

Make sure to have Node 18 installed on your machine.

Installation 🚚

  1. Clone this repository: git clone https://github.com/saulocastillos/react-typescript-minimal
  2. Navigate to the project directory: cd react-typescript-minimal
  3. Install dependencies: npm install

How to Use πŸš€

To start the development server with live reload:

npm run dev

This will start the server at http://localhost:3000. Open your browser and see the application in action. Live reload ensures that code changes are automatically reflected in the browser.

Project Structure πŸ—οΈ

The project structure is organized as follows:

  • entry-point.tsx: Entry point of the application.
  • index.html: Main HTML page of the project.
  • jest.config.js: Jest configurations for testing.
  • src: Contains the source code of the application.
    • app.tsx: Main component of the application.
    • app.spec.tsx: Tests for the App component.
  • package.json: Project configuration file.
  • tsconfig.json: TypeScript configurations for the project.

Technologies Used πŸ› οΈ

  • React
  • TypeScript
  • Esbuild
  • Jest
  • React Testing Library

Scripts πŸ“œ

  • dev: Starts the development server with live reload using Esbuild.
  • build: Generates production output files using Esbuild.
  • test: Runs tests using Jest.

Testing πŸ§ͺ

Tests are written using Jest and React Testing Library. To run the tests, use the following command:

npm test

Contributing 🀝

If you want to contribute to this project, feel free to open an issue or submit a pull request.

License πŸ“

This project is licensed under the MIT License - see the MIT file for details.

Author: Saulo Castillos πŸš€

About

The "React TypeScript Minimal + Jest πŸš€" project provides a lightweight setup for developing React applications with TypeScript, efficient compilation using Esbuild, and reliable testing with Jest and React Testing Library. Streamline your development process with this ready-to-use framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published