gleidsonlm / angelon-api

AngelOn API is the backend implementation for the AngelOn application.
0 stars 0 forks source link

Implement Mock user in testing with proper authentication and authorization #13

Closed gleidsonlm closed 1 year ago

gleidsonlm commented 1 year ago

Implement Mocks in End-to-End testing in order to make it easier to use the routes with the proper authentication and authorization.

gleidsonlm commented 1 year ago

Instead of mocking the authorization, tests were completed by overriding the guards as described at https://docs.nestjs.com/fundamentals/testing#overriding-globally-registered-enhancers.