How do you stub a function from another package when testing?

That exists! :slight_smile: @chmac pointed that one out, it’s not documented :anger:

api.export([
  'Foo',
], ['server', 'client'],
{testOnly: true});
3 Likes