How to mock AsyncIterable paging sub-call from Jest mock?
I’m trying to mock an Azure SDK PagedAsyncIterableIterator, using Jest. The unit test fails on the “.byPage()” method call, with the error TypeError: this.storageManagementClient.localUsersOperations.list(...).byPage is not a function
. The “list” mock works, but the list sub-call to “byPage” fails.