Another question from my side, I tried to stub an ...
# component-testing
a
Another question from my side, I tried to stub an import from node_modules but that doesn't work. eg: __**X.js**__ (path is node_modules/x/X.js)
export const isSuccess = (res) => res._tag === "Success";
When i try to stub this method like below, its not working.
cy.stub(Res, "isSuccess").returns(true);
But if i create this method inside my project src and try to stub, its working. So, Can't cypress stub things from library files which are imported in components?