Is there a way to use angular-mocks.js to invoke backend-less request mocking, testing an external site? There are plenty of examples using angular mocks on a codebase that the developer has access to add a . However, I'm stuck in a scenario... calling out to an Angular site, in the wild, which I need to test the frontend functionality, with well-known endpoints/results.
A quick fake example:
- Call out to
www.externalwebsite.com/RealAngularApp
- RealAngularApp calls an endpoint
www.externalwebsite.com/api/v1/getdata
that returns{ id: 1, name: "testing" }
- I need to intercept this (as angular mocks does), but without the ability to add the angular mocks script tag in the code (because it's an external site)
Any/all thoughts are welcome.
Thank you.