An Interest In:
Web News this Week
- April 27, 2024
- April 26, 2024
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
September 27, 2022 11:08 pm GMT
Original Link: https://dev.to/nothanii/install-enzyme-and-configure-jest-58f
Install Enzyme and Configure Jest
Create React App
Create React App is the best way to start building a new single-page React application. More information on Create React App in the resources below.
Important Note about Create React App
With Create React App, the changes that the instructor makes to the project files are now unneeded. Simply run the following in the terminal to get started:
npx create-react-app react-enzyme-jest
cd react-enzyme-jest
With our project created, we can install Enzyme as a Dev Dependency:
npm install --save-dev enzyme
That's it! We don't need to make a .babelrc file, nor do we need to edit our test script in package.json.
Resources
Original Link: https://dev.to/nothanii/install-enzyme-and-configure-jest-58f
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To