I try to create integration-tests using Jest, the idea is the that those tests perform basis validation for Dynamics 365 (for example: 'Certain teams are provided with an set of security roles). For this purpose do I need to actually invoke the API of Dynamics 365 (load role assignment per team).
I do no like the idea, to store the credentials in plain text in config.js.
Question is now, how do I obtain username and password (or clientid and app secret), needed to authenticate the user that runs the tests with Dynamics 365?
- Is is possible to interact with the user when executing Jest test?
- How do I cache the already credentials to ensure the user does not need to provide this Information for every run