I am using the @cypress/react package to perform unit-testing on react components.
@cypress/react
In my case, these react components contain external influence such as serv