elegant-psychiatrist-66173
07/25/2022, 7:10 PMexport default useSpecificHook(...args)
When stubbing this function I get an odd error:
import useSpecificHook from ".";
...
cy.stub(useSpecificHook).returns({});
That returns cy.stub(...).returns is not a function
which doesn't make sense since it should chain like SinonJS. Any idea what I could be doing wrong? Are methods stub-able?abundant-gold-84344
07/26/2022, 7:08 AMelegant-psychiatrist-66173
07/26/2022, 12:10 PMCannot stub non-existent own property useSpecificHook
. Any ideas?abundant-gold-84344
07/26/2022, 12:20 PMabundant-gold-84344
07/26/2022, 12:24 PMelegant-psychiatrist-66173
07/27/2022, 11:22 AM