| 
 
 
 |  | | 
 | 
 
 
 | If you expect a promise to be rejected, use the ______________ matcher. If the promise is fulfilled, the test will automatically fail. Question Posted on 27 Feb 2019
 
 Home >> Frameworks >> Jest >> If you expect a promise to be rejected, use the ______________ matcher. If the promise is fulfilled, the test will automatically fail.
 | 
 
 
 
 
 | If you expect a promise to be rejected, use the ______________ matcher. If the promise is fulfilled, the test will automatically fail. (1).then
 (2).rejects
 (3)all the options
 (4).resolves
 
 Answer:-(2).rejects
 |  | 
 
 
 
 
 
 
 
 
 
 
 |  |  |  | 
 |