I am working on Frontend Unit Tests (Jasmine, Karma) for an angular project that has utilised a pre-built AWS angular template. I am new to the project and AWS. The app itself works without issue. Ultimately, there should be no AWS/server connection, and all services will be mocked.
The problem I am running into is inconsistent errors arising from seemingly random components when the Karma Unit Test spec is run. These components have no AWS related calls or service calls. Many of them are simple and contain mainly front-end templates (there is no back-end related logic).
Error: Uncaught (in promise): No Cognito Identity pool provided for unauthenticated access
I am still trying to wrap my head around AWS services (User pools, identity pools etc) - and have no idea why this error is occurring.
Could someone please explain what is happening or how I can go about mocking AWS entirely across the app with some sort of configuration, or create a mock user identity pool to elevate this error. I have read what feels like every webpage and am still stuck :(
Thanks in advance!