3 ms·
I've recently been using Meteor on a couple small projects and so far like it quite a bit. My main frustration though is unit testing. While there's the offic
by jxm262 11y ago
I've recently been using Meteor on a couple small projects and so far like it quite a bit. My main frustration though is unit testing. While there's the official Velocity test runner, documentation and code examples for integrating and effectively using the frameworks is very confusing (I personally use Mocha). I know there's some books and blogs to help alleviate this, but there doesn't seem to be one (or even just a few) de-facto framework/setups to illustrate how to properly unit test Meteor apps.
- samhatoum 11y agoTry this https://github.com/xolvio/Letterpress/tree/master/app/tests/jasmine https://github.com/xolvio/Letterpress/tree/master/app/tests/... ES6 modules will change this approach somewhat, FYI
- jxm262 11y agoyeah, I'm aware of the Meteor testing manual. It has alot of good stuff, and for what I'm doing the link you mentioned mostly resembles my setup (although using mocha instead of jasmine). Just wish the testing was more "officially" documented with good examples and sample repos as opposed to buying a book. If you go on the meteor forums there is _alot_ of discussions on the different frameworks and how to piece things together.