Jest_JavaScript testing framework

Jest is a JavaScript testing framework to test all the Facebook JavaScript code, including applications React.
Different levels of automated tests: unit, integration, testing components and functional units and can be seen as the same as the basic component level testing JavaScript objects and methods. By default, React Native provided Jest Android and iOS can be used for unit testing. Now, the test coverage is not perfect, but according to Facebook's statement, in the future there will be a more powerful tool to test the ability of being introduced to React Native, while users can also build their own testing tools.
The test features Jest
Adaptability: Jest is modular, scalable and configurable.
Fast and Sandbox: Jest JavaScript virtual environment that simulates a browser, and running tests in parallel between the work process.
Snapshot Test: Jest can take snapshots or other serialized value of the tree React quickly write tests provide fast update user experience.
Fast interactive mode: the error message will help the color-coded markers, pointing to the stack trace the root of the problem quickly.
 
 
Author: Mr. Xiaotao it
Link: https: //www.jianshu.com/p/a656a5459e73
Source: Jane books
Copyright reserved by the authors. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/TomBombadil/p/11121976.html