ember-drag-drop
ember-drag-drop copied to clipboard
drag coordinator is undefined when running integration tests
Currenlty working on writing tests for a compenent that is using draggable-object
and draggable-object-target
.
When the full app is running everything works as expected, but when I try and run ember integration tests things blow up on this line draggable-object-target.js#L10
That's because the coordinator has not been injected into the testing environment. It is on my list to refactor this as a service. For now you'll have to manually inject it into your tests. See https://github.com/mharris717/ember-drag-drop/blob/master/app/initializers/coordinator-setup.js for how we inject it into the app. You'll have to do something similar to inject it into you're tests in the start-app helper. Or stub the coordinator out.