How can I test with jest a pnp function? How can I mock the webpart context and pnp responses?
I'm using spfx webpart, pnp-js-core and jest for unit testing
Thanks.
The SharePoint Framework React Jest Testing sample from GitHub for your reference.
SharePoint Framework React Jest Testing sample
Reference: SharePoint Framework unit-tests with Jest