ferrerojosh / nest-keycloak-connect

keycloak-nodejs-connect module for Nest
MIT License
316 stars 123 forks source link

Question: Mocking support for tests #100

Open n1md7 opened 2 years ago

n1md7 commented 2 years ago

Is there a way or suggestion on how to mock the Keacloack service using this module?

Is it possible to use https://github.com/SectorLabs/keycloak-mock ?

ferrerojosh commented 2 years ago

You could create a service which injects the keycloak instance. And insert the mock there.

Israel001 commented 2 years ago

@ferrerojosh An example would be really nice boss (: