When using Jest to test NodeJS Rest API applications, how to use mocks only in test environment?

前端 未结 0 1545
星月不相逢
星月不相逢 2021-01-01 08:27

I have a Rest API application using NodeJS and Express. I have set on .env different environments depending on the situation, like NODE_ENV=DSV or

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