I would like to be able to stub the encode function inside of the jwt-simple
library.
Something like this:
import { encode } from 'jwt-simple';
sinon.stub(encode).returns('your encoded string');
Is this possible? I have been trying to find solutions and workaround but have not been successful.
I'm open to ideas. Thanks