Notifications
Announcements
Has anyone successfully mocked ComponentFramework.Context<IInputs> in a test framework? I would like to extend my test coverage but am loath to actually create an instance of this huge object by hand.
Answered my own question with this article.
Substitute.for<ComponentFramework.Context<IInputs>>()
This might be late, but for anyone interested my team and I built the following NPM package to help with mocks of the ComponentFramework: https://github.com/Shko-Online/ComponentFramework-Mock
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268