Just recently upgraded to Angular 7 and Typescript 3.2.2, and now one of my Jasmine spec tests is throwing an error.
httpMock.expectOne({method: 'PUT'}).flush(new Response({status: 200}));
The error message reads:
Argument '{ status: number; }' is not compatible with parameter 'BodyInit'. Object literals can only have known properties, and status is not a property of BodyInit
The packages I'm currently using are:
- @typeScript 3.2.2
- @types/jasmine 3.3.9 (latest)
- @types/node 11.10.5 (latest)
Do I need to update any of these packages in order to fix this issue?