-
Notifications
You must be signed in to change notification settings - Fork 76
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
TypeError: Unknown StorageFactory when testing in addon #259
Comments
@BryanCrotaz thanks for reporting. Is the addon public? |
No, but you should be able to reproduce by creating a service in an addon and having the service use storageFor and get it in init |
Did you define the storage object in |
used your generator which puts it in app |
Will dig into it. |
How do you test it? I mean do you use it in the dummy app or use the addon in a normal app? Would be great if you could provide a repo to reproduce the error. |
@BryanCrotaz any news? |
Any news on this? I'd like to know how to make the tests work. |
@tinyweasel can you provide a repo to reproduce? |
@BryanCrotaz @tinyweasel If one of you can provide a repo to reproduce I'm happy to fix it. |
Hi, any updates with this issue? |
@carlos-figueroa-globant I still can not reproduce it. If you have a repo I can test with I'll take a look. |
For anyone who may be struggling with this: We discovered that adding the storage key to the In the route/controller:
In the test:
|
@ammorrise Thank you for that hint! |
Using storageFor in addon fails at test time with error
TypeError: Unknown StorageFactory: storage:
at createStorage
The text was updated successfully, but these errors were encountered: