Open kellyselden opened 7 years ago
I've just seen an interesting way for test helpers auto-registration . It just allows to bootstrap all the stuff and allows to get this done without blueprints.
@kellyselden what do you think about this approach?
That would be great if it works. One difference I notice is that that addon is installing functions onto the QUnit global, where this is running registerAsyncHelper
. If you/someone took a stab at this and it worked, that would be great! Also, would it interfere with anyone that already has the import set up in start-app?
I can try to make a stub but after my vacation(3 weeks from now).
As for the interferring with start-app - good point. I believe it should be possible to workaround it with some kind of additional guard around the registerHelper.
add the
import 'ember-wait-for-test-helper/wait-for';
to "tests/helpers/start-app.js" automatically