Summary In our frontend application, we make use of components that subscribe to context providers, and those providers often contain state-updating logic. Test setup for context-wrapped components is often confusing, and quite frankly, a pain. There are two main options for testing these context-wrapped components: Use a static context provider with…