I can't understand some of the notes in the jest test report.

jest test report clicks into the code details page, and some annotated screenshots are as follows

clipboard.png

    What is the meaning of 5x on the left side of
  1. ?
  2. E hint else path not token what do you mean?

solve.

Mar.10,2022

5x indicates that this statement was executed five times in the test.
E is the case when the test case does not test if condition false , that is, in your test case validator.validateDeviceId (deviceId) has always been true , you have to write a validator.validateDeviceId (deviceId) test case for false . This E will disappear
I is the case where the test case has no test if condition true

Menu