You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that this is worse than I thought, I can't get any collection to stub correctly (on the server, not sure about client):
import StubCollections from 'meteor/hwillson:stub-collections';
var test = new Mongo.Collection("test");
StubCollections.stub([test]);
test.insert({test: "test"});
console.log(test.findOne());//logs undefined
@hwillson I actually can't - I guess it has something to do with the other packages I'm using. I've tried adding the usual culprits (collections2, simple schema, hooks, etc) - but can't get this to repeat. I'm in the process of updating my meteor apps to 1.7, once I'm done doing that I'll confirm if this still exists.
As the title says, no error is thrown (sync or async) an _id is returned, but the record isn't actually created.
The text was updated successfully, but these errors were encountered: