2017-02-11 62 views

回答

0

您可以通過拋出Error做到這一點。例如:

test('should fail',() => { 
    throw new Error('I have failed you') 
}) 
相關問題