I removed a big section of code from our main repo and got it working as a plugin.
Now I’m going through trying to fix all the tests. The problem I’m running into is that I’ve removed all the
<require from="..."></require> from the templates since all the components are being used globally. But I’m not sure how I can get Jest to respect that too…
The best I’ve been able to find is to do this on every single test (and it works, just not ideal):
component = StageComponent.withResources().inView('<div></div>'); component.bootstrap(au => au.use.standardConfiguration().feature('index')); await component.create(bootstrap);
Is there a way to make this a global setting for all the tests instead?