You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since initializers are not ran for moduleFor and moduleForComponent tests, those tests will be using the non-Ember specific spaniel engine (which is not run-loop aware). The first time that a spaniel call is made the spaniel internal variable globalEngine is setup (defaulting to the "normal" spaniel engine) and cannot be reset.
This means that in any circumstance where a moduleFor or moduleForComponent test is ran before a moduleForAcceptance (the only tests prior to emberjs/rfcs#232 and emberjs/rfcs#268 that actually run initializers) the entire rest of the test run is going to run with the incorrect spaniel engine.
The fix is straightforward, this initializer should be removed:
Since initializers are not ran for
moduleFor
andmoduleForComponent
tests, those tests will be using the non-Ember specific spaniel engine (which is not run-loop aware). The first time that a spaniel call is made the spaniel internal variableglobalEngine
is setup (defaulting to the "normal" spaniel engine) and cannot be reset.As you can see here:
This means that in any circumstance where a
moduleFor
ormoduleForComponent
test is ran before amoduleForAcceptance
(the only tests prior to emberjs/rfcs#232 and emberjs/rfcs#268 that actually run initializers) the entire rest of the test run is going to run with the incorrect spaniel engine.The fix is straightforward, this initializer should be removed:
https://github.com/asakusuma/ember-spaniel/blob/066cfdaf16ea3e939e1fdd440745c04ccdc4ea64/addon/initializers/spaniel.js#L4-L11
Instead, the custom spaniel engine should be moved to
vendor/
andapp.import
'ed directly.The
app.import
ed code will always run (completely independent of the initialization process of an application), and everything will be 🌞 and 🌈 .The text was updated successfully, but these errors were encountered: