-
Notifications
You must be signed in to change notification settings - Fork 22
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
meteor test: Installed but msgfmt.init('en') etc was never called. #242
Comments
Have you added |
I added it in varous places to check whether it might make a difference. |
@dasdeck This call should execute at least before any other call to |
Yea, thats what I thought! |
Quite some time went by, but I'm still getting this error. I placed But when running unit-tests with meteor test it still prints out the error This causes all my tests to fail, what can I possibly do to avoid the issue? |
+1 I'm seeing this exact issue too. We definitely have the |
TL;DR In short, to test successfully with msgfmt, use Explanation: Hi all, sorry that I'm not so active here atm. I do feel bad that this issue was first opened 10 months ago :/ To partially quote from Meteor Guide: Testing:
So if you're calling It might be nice to have a special test mode built into msgfmt for unit tests / regular test mode. Since msgfmt won't be fully loaded, it won't know what the native language is nor will it load any locales. So unit testing for translation is out (obviously in the app context that's an integration test and not a unit test), but probably all we want for app unit tests is for things not to break. Returning the inline native text (and dealing with variables) should be enough. Unfortunately this isn't something I have time to work one, but I'll happily accept a PR for this. In any event, everything works as expected with |
sbeen a long time, just doing some cleanup and closing this. |
Hi!
I'm using latest v2 release and all works good and well, but when I try to start meteor with:
Meteor is 1.4.
I get:
I'm happy to help debugging the problem, though I'm not sure where to start in this case.
Any ideas?
This seems to be a related Issue:
tomitrescak/meteor-boilerplate-typescript#1
Cheers!
JM
The text was updated successfully, but these errors were encountered: