This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
npm install @mui/material @emotion/react @emotion/styled
npm install -D prettier
install Babel plugins and webpack loaders as devDependencies like so:
npm i -D @babel/core @babel/preset-env @babel/preset-react babel-loader file-loader css-loader style-loader webpack webpack-cli html-webpack-plugin webpack-dev-server
To use Babel, install required dependencies - npm install --save-dev babel-jest @babel/core @babel/preset-env
jest install - npm install jest --global or npm install --save-dev jest
Enzyme npm install --save-dev @cfaester/enzyme-adapter-react-18
npm run test - this will run Jest and execute all the tests
npm run test:watch - will run all the tests and keep on watch mode, so that when we make any changes to our test cases, it will execute those test cases again.
npm run test:coverage - will generate a coverage report based on all the tests it executes, and give you a detailed coverage report in the app/coverage folder.
ESLint
npm install eslint-plugin-react-hooks@next.