After more than a year of front-end work, I have never carefully written a unit test. I have made a serious study and summary of the various frameworks that I often say cannot be completely divided.
Unit Test Framework: mocha, Jasmine, etc. Because the test framework does not contain the assertions library, you need to introduce the assertions library. Jasmine has assertions (not used ).
Assert, shouldjs, and Chai are used in specific unit test cases.
Karma is an automated testing tool that uses configuration files to automatically detect and test unit test files and output test results.
The continuous integration service of Travis Ci is used to detect, compile, and publish code in the code library. Jenkins is used for similar purposes.
Experience: Low-handed eyes are a common problem for everyone. In fact, I have learned these frameworks before and thought I would use them. In fact, what I actually use is often a face-to-face situation. I need to practice more, read more and perform multiple operations.
Frontend testing framework Learning