After the upgrade, Mocha can't even run a simple test. Here is his code:
const assert = require('assert'); it('should complete this test', function (done) { return new Promise(function (resolve) { assert.ok(true); resolve(); }) .then(done); }); I took this code from https://github.com/mochajs/mocha/blob/master/CHANGELOG.md#boom-breaking-changes
I realized that he now throws an exception:
Error: Resolution method is overspecified. Specify a callback or return a Promise; not both.
But how to make it work, I did not understand. I use:
node -v 6.9.4 mocha -v 3.2.0 How to run this code now in a new and correct format?