Correct typing issues with mocks in queryApiGateway test #587
Labels
Engineering
Technology and Development Track
Type: Robustness
Tickets to improve the application, invisibly
Milestone
Description
Issues with how the Jest mocks and the Typescript server interact means that the typing reports errors for every mocked function we are invoking. In particular, calls to
fetch
andfs
return type errors as if they were the actual objects, instead of their mocked counterparts.Discovered & spun out of #571
Acceptance Criteria
//@ts-ignores
& corresponding@typescript-eslint/ban-ts-comment
comments from queryApiGateway testThe text was updated successfully, but these errors were encountered: