how to unit test uncaughtException and unhandledRejection in Nodejs using Jest

前端 未结 0 1319
天命终不由人
天命终不由人 2020-12-21 08:02

I have built an error handler like this:

const logger = require(\'./logger\');

module.exports = () => {
  process.o         


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