| React CRA Testing Practice |
|---|
| Learn to test in a CRA app with Typescript using Jest |
| π Report a bug or πββοΈ request a feature |
This project is for updating knowledge on testing
- Basic
create-react-appstructure - Sets
eslintrules - Linters
- React
- React-DOM
- React-Create-App
- Typescript
- ES6 syntax
- Export/import ES6+ notation
create-react-appESLintnpmvscodewith ESLint extension- Linux/GNU
- Love and Passion for code
- Open it
npm6.14 +node14.17 +dockeranddocker-compose(optional)- A Text Editor like VSCode
- A browser like Firefox or Chrome
- Be sure to setup
docker-composeand havegitandnpmworking. - Run this:
> git clone https://github.com/Israel-Laguan/react-cra-ts-testing-practice.git
> cd react-cra-ts-testing-practice
> npm i
> docker-compose build
> docker-compose up frontend- Enter
localhost:3000in a browser for the frontend.
You can also test using docker, run docker-compose up test or docker-compose run --rm test
Not a fan of Docker or need more information? Continue for instructions to learn more about how to setup your PC for run the frontend!
We used create-react-app to initialize this project, so it is configurated to be easy to run. Just follow the following instructions.
Now that you are set up, open a terminal and:
git clone https://github.com/Israel-Laguan/react-cra-ts-testing-practice.git
cd react-cra-ts-testing-practice
npm i && npm startThen open http://localhost:3000 to see the app.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
See the section about deployment for more information.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
- Create a landing page.
- <Insert your great idea here!>.
| Israel Laguan | |
|---|---|
![]() |
π€ Contributions, issues and feature requests are welcome! Feel free to check the issues page.
π€ Give a βοΈ if you like this project!
This project is possible with help from:
- Lint configuration from Camilo Martinez
- Icons from
Icons8
- Banner from canva.com
- Favicon from favicon.io
π This project is licensed under the Apache 2
Feel free to fork this project and improve it!





