Say I have a deeply nested component structure and I don't want to stub the dependencies (mainly services and ajax calls) of all the child components and their child components. Is there a way to inject a stub like Ember.Component.create({}) into the container to replace the real one for that test. It seems like it should be possible but I can't seem to figure out the syntax or find it documented anywhere.
jeudi 10 mars 2016
Stubbing child components in Ember component test
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire