Disclaimer
This might be related to #136, but since my test case involves ember-engines, I thought I'd create a new issue. Feel free to close this one in favor of #136 if you think that's better.
My issue
This example app contains an in-repo engine, and this engine only displays the XFoo component.
This component uses the media helper provided by ember-responsive.
XFoo has 2 almost identical integration tests that you can find at: http://lvh.me:4200/tests?moduleId=ef7715a3.
One is failing with the error
Failed to create an instance of 'breakpoints:main'. Most likely an improperly defined class or an invalid module export
The other test adds the following line and does not fail:
this.owner.registerOptionsForType('breakpoints', { instantiate: false });
ember-responsive does the same thing in an initializer, but this is not enough to make the integration test work out of the box when testing components of an engine.
Do you believe there is a way to have the integration tests work without re-doing the registerOptionsForType call?
Disclaimer
This might be related to #136, but since my test case involves ember-engines, I thought I'd create a new issue. Feel free to close this one in favor of #136 if you think that's better.
My issue
This example app contains an in-repo engine, and this engine only displays the XFoo component.
This component uses the
mediahelper provided byember-responsive.XFoo has 2 almost identical integration tests that you can find at: http://lvh.me:4200/tests?moduleId=ef7715a3.
One is failing with the error
The other test adds the following line and does not fail:
ember-responsive does the same thing in an initializer, but this is not enough to make the integration test work out of the box when testing components of an engine.
Do you believe there is a way to have the integration tests work without re-doing the
registerOptionsForTypecall?