Mocking readFileSync with jest is working but only for get API calls

后端 未结 0 1456
既然无缘
既然无缘 2021-02-02 16:53

In app.js, there are get functions, which reads a data.json file from the filesystem. in the post methods, it reads the json from the filesystem and writes it afterwards

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