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.
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
Answered my own question with this article.
Substitute.for<ComponentFramework.Context<IInputs>>()
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
MS.Ragavendar
72