jest test report clicks into the code details page, and some annotated screenshots are as follows
-
What is the meaning of
- ?
-
E
hintelse path not token
what do you mean?
5x
on the left side of solve.
jest test report clicks into the code details page, and some annotated screenshots are as follows
5x
on the left side of E
hint else path not token
what do you mean? solve.
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
there are mostly examples of testing static react or puppet components on the Internet, and there seems to be no example of testing components after getting data asynchronously. Do I understand the wrong test idea? Or is it the wrong way? ...
Hello, bosses. I encountered a problem when I was doing the jest test select the drop-down content of antd s select is displayed in dom and requires a mouse click. I used enzyme s mount method, and then simulated clicks through simulate ( change )...
because there is logic in the code to determine whether it is a mobile phone PC, so you need to change the ua in the test code to test. How can it be implemented? ...