-
Notifications
You must be signed in to change notification settings - Fork 37
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
Getting tons of errors when running tests on Templates. #137
Comments
You need to stub your templates. You are running unit tests, you do not want to load meteor for every single test.
|
You may consider trying out my oneliner:
This will generate all template stubs and display them on console:
Template.stub("searchbar"); I have an alias in bashrc for that. |
Interesting, this should probably just happen automagically. I'll look at adding this in. Thanks! |
A pull request is always welcome of course :) |
Great, thanks! |
So, I'm trying to run rtd on my system for the first time. For some reason I'm getting a load of errors on my Templates:
TypeError: 'undefined' is not an object (evaluating 'Template.cr_notification_area')
at /home/jthomas/git-projects/app/client/care_recipient_client/cr_notification_area.js:6
Every single one of them is on line 6 for every template file, and seem to show up at random for all of my templates.
If I evaluate the same templates from JS console, they return HTML, and work just fine in my application.
The text was updated successfully, but these errors were encountered: