Use Application.buildInstance
if possible to create owner
for use in tests.
#234
Labels
Application.buildInstance
if possible to create owner
for use in tests.
#234
Application.prototype.buildInstance
is exactly what is done in "reality" to build the owner object. We should migrate to a setup where the host application sets up the application under test (essentially replacing what is done viasetResolver
) in itstest-helper.js
and then for each test we do something likethis.owner = previouslyCreatedApplicationInstance.buildInstance();
.This would essentially provide the following benefits:
Ember._RegistryProxyMixin
/Ember._ContainerProxyMixin
The text was updated successfully, but these errors were encountered: