Testing javascript with Mocha - how can I use console.log to debug a test?

后端 未结 5 2126
名媛妹妹
名媛妹妹 2020-12-13 16:31

I am using the javascript test-runner \"Mocha\".

I have a test that is failing, so I would to debug it using console.log.

But when the tests are

5条回答
  •  囚心锁ツ
    2020-12-13 17:26

    You may have also put your console.log after an expectation that fails and is uncaught, so your log line never gets executed.

提交回复
热议问题