Awesome write up! Thanks for sharing.
I’m glad this was able to help you. If you use the jest config fix, please let me know how it goes.
I also am wondering if this is something of interest to foreman_leapp? RFC: Don't duplicate npm packages in Katello and plugins for React testing
I think we can standardize the plugin story a bit and 1) not duplicate packages from Foreman in devDependencies 2) use foreman code in plugin testing.
My thought is to create an npm package that uses the logic to “find foreman” during testing and then be able to use that in the jest config. This would be helpful to not duplicate the same logic across plugins. I plan to look further into this when I get a chance, I’ll continue to share progress and would love to get feedback from other plugins as it continues.