Skip to content

Integration test failing inside an in-repo engine #178

@bartocc

Description

@bartocc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions