Stubbing createClient gives an error about "error sending request for url"

Is there a workaround in doing stubbing for createClient? It seems there's still some other codes that need to be stubbed, but is this the only way?
Screenshot_2025-12-01_at_02.29.48.png
Screenshot_2025-12-01_at_02.32.23.png
Was this page helpful?