kellyselden / ember-wait-for-test-helper

Ember waitFor test helper
MIT License
3 stars 3 forks source link

add the import automatically #9

Open kellyselden opened 7 years ago

kellyselden commented 7 years ago

add the import 'ember-wait-for-test-helper/wait-for'; to "tests/helpers/start-app.js" automatically

ro0gr commented 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?

kellyselden commented 7 years ago

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?

ro0gr commented 7 years ago

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.