Mocking backend responses is extremely simple with angular-mocks.js and the ngMockE2E module. This lesson will show you how to include and use the module, ensuring you can stay productive on the front end even if your back end is broken, slow, or doesn't even exist yet.
A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.
Do you know how to mock in Protractor without needing to modify the app's source?
Hey Joseph,
I guess you could check the URL and/or port the app is running on, and conditionally define the mocks if it matches your test environment.
HTH, Ben
Why you don't create a video of how to use protractor and ngMockE2E?