1. Background Introduction React is a JavaScript library developed by Facebook for building user interfaces. Its original intention was to solve the problem of low view rendering efficiency in JavaScript single-page applications. Facebook is also using React internally for the development of internal projects. This article will introduce some knowledge points about React principles, component […]
Tag: enzyme
Tubi Frontend Testing: Migrating Enzyme to React Testing Library
Front-end technology is developing rapidly, even if it is not changing with each passing day, new frameworks and new technologies are introduced every year. Tubi’s product front-end code warehouse was built in 2015 and has been in existence for more than 8 years. Fortunately, following the development of the React community over the years, most […]
react+jest+enzyme configuration and writing front-end unit test UT
The address of the original collection is as follows, friends in need can pay attention Address of this article Collection address Article directory Installation and configuration enzyme rendering testing skills 1. Common tests 2. Trigger the ant design component 3. Use redux components 4. Components using routing Five, mock interface network request 6. Mock unneeded […]
react+jest+enzyme configuration and writing front-end unit test UT
Article directory Installation and configuration enzyme rendering testing skills 1. Common tests 2. Trigger the ant design component 3. Use redux components 4. Components using routing Five, mock interface network request 6. Mock unneeded subcomponents Installation and configuration Install related libraries: First, install the required libraries using npm or yarn. npm install –save-dev jest enzyme […]