-
Notifications
You must be signed in to change notification settings - Fork 37
Template file could not be read during full-app test #76
Comments
Hi! We're seeing the same output when we're doing full app test too, and I've guessed so far that Meteor is building the app structure differently for those kinds of app startups. I.e. this package can't rely on fetching templates from the We're doing some file trickery at the top of this file: https://github.com/lookback/meteor-emails/blob/master/lib/utils.js. As you can see, we use |
Thx for the quick reply @johanbrook ! Here's what I have when I run my full app testing:
If I open Looking at https://github.com/lookback/meteor-emails/blob/master/lib/utils.js, I suppose you could use the |
Hi guys, yeah I just ran into this issue, but when running tests in UNIT-testmode, p.e. when running testmode like Did you guys make any projects on this? Did you find a good solution/workaround? |
Nope, no workaround yet. We can check for test runs with |
damn - thats a pitty. I was hoping that this package makes testing easy for me using the |
Yeah, not sure what's going on there. |
Hi Johan, I am not into your codebase, but I just scanned https://themeteorchef.com/snippets/using-the-email-package/#tmc-questions-comments. The comments might contain some interesting stuff to improve the code? Check it out and search for |
Neat, it was a while ago I looked at those APIs. Might help very much. Will have a look. |
I don't know if you are much into unit-testing, so this is a little skeleton for you to get started: run via
oh and of course open localhost:3500 in a browser |
Hi guys, I just submitted a pull request. @noahsw: can you check if this works in your app-tests? |
I'm trying to write a full-app test of my email's rendering.
However, when I run
meteor test --full-app --driver-package practicalmeteor:mocha --port 3100
, I see these errors:Everything works fine in dev and in production. It's just these full-app tests that can't find the template.
Any ideas?
The text was updated successfully, but these errors were encountered: