React technical principles and code development practice: from Jest to Enzyme

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 […]

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 […]