how to to make sinon return non promise I do mock expect

resolves returns a promise. The equivalent method in sinon to return a value is .returns:

  sandbox.mock(monitoring).expects('getHttpRequestDuration').returns({
    startTimer: () => {}
  });

See stub.returns in our docs.