Integration Tests Issue [1.3]


#1

I am trying to set up a full-app integration test and cannot figure out how to call the generateFixtures method as specified in the guide. I keep getting a [404] method not found error. I tried using Meteor.call instead to no avail and I made sure to change the ROOT_URL to http://localhost:3100/ for the test server.

Meteor.methods({
  generateFixtures: function generateFixturesMethod() {
    resetDatabase();

    _.times(1, () => createCommissions());

  }
});


let generateCommissions;
if (Meteor.isClient) {
  // Create a second connection to the server to use to call
  // test data methods. We do this so there's no contention
  // with the currently tested user's connection.
  const testConnection = Meteor.connect(Meteor.absoluteUrl());

  generateCommissions = Promise.denodeify((cb) => {
     testConnection.call('generateFixtures', cb);
  });
}


#2

Did you ever figure this out?