Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moduleForComponent tests and loading app/initializers #150

Closed
leepfrog opened this issue Mar 10, 2015 · 2 comments
Closed

moduleForComponent tests and loading app/initializers #150

leepfrog opened this issue Mar 10, 2015 · 2 comments

Comments

@leepfrog
Copy link

Is there a way to get moduleForComponent tests to load app/initializers?

One example use-case is:

I'm building a component that relies on ember-key-responder. As part of the unit test for the component, I want to test what the component does on a key press. In order to have a functioning test, I need to have the initializers from ember-key-responder running.

(I suppose this is more of an integration test and would normally have the app loaded, but is it possible to get some of the app state through this testing method?)

@jbrown
Copy link
Contributor

jbrown commented Mar 10, 2015

See emberjs/ember-test-helpers#21

@stefanpenner
Copy link
Member

#21 should help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants