Currently, we can indicate the reason for waiting for the specification using the function pend()in this way -
xit("pending spec", function(){
}).pend("This is a reason");
The output of the specified function will be -
Sample Test: pending spec
This is a reason
Executed 1 of 1 specs (1 PENDING)
Now, how to get the same reason for disconnected packages?
xdescribe('Disabled suite' , function(){
it('example spec', function(){
});
}).pend("This is a reason");
The output of the disconnected package above is
No reason given
and stays the same even if I use the function pend(). Thank!
source
share