Is there a way to bypass, mock or automate MSAL for end to end testing for React Native application?

Kelly Villalobos 30 Reputation points
2023-03-21T15:19:09.49+00:00

I am trying to modernize a React Native application with end to end testing but I have hit a blocker. I am unable to automate the authentication process for MSAL since it is a third party Library. I haven't found any documentation yet that explains either bypassing or controlling the MSAL process in order to get authorization to the application to conduct end to end testing. I know you can mock calls and spy on operations in your application using Jest or cypress but I haven't found any examples pertaining to MSAL. Any help the community can provide would help.

Microsoft Security | Microsoft Authenticator
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.