How can I mock a function called by the function I am exercising? The functions are in the same file

后端 未结 0 1137
攒了一身酷
攒了一身酷 2020-12-16 03:50

The file I am writing tests for is exporting the following

module.exports = {
  groupProducts,
  test: {
    getNow,
  },
};

I know how to mo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题