2017-02-11 61 views

回答

0

您可以通过抛出Error做到这一点。例如:

test('should fail',() => { 
    throw new Error('I have failed you') 
}) 
相关问题