Stubbing a React component method with Sinon
I’m trying to stub a React component method for testing purpose:
I’m trying to stub a React component method for testing purpose:
W.r.t. How to mock firestore with mocha how do I mock the following firestore query using sinon?
This is one of the more complex scenarios I’ve encountered yet. I have a function that I need to test, this function is nested in a complex puzzle of functions. I need to stub this function, and set a value inside the variable
inside.
Here is my function which will return a promise once it gets data from oracle database: