mocha.parallel is printing an object after each test
Closed this issue · 8 comments
fabiob commented
When using mocha.parallel
, an object is printed after each test run. Downgrading to 0.15.3 fixes the issue.
I've created a repository with a reproducible test: https://github.com/fabiob/mocha.parallel-test-weird-print
Here's the result:
$ mocha
sample test
without mocha.parallel
✓ should pass
with mocha.parallel
{
"title": "should pass",
"body": "function () {\n if (spec.error) throw spec.error;\n spec.ctx.patchContext(this);\n return spec.promise.then(function() {\n if (spec.error) throw spec.error;\n });\n }",
"async": 0,
"sync": true,
"timedOut": false,
"pending": false,
"type": "test",
"file": "/home/fabio/Projects/OpenSource/BugReports/mocha.parallel-prints/test/parallel_spec.js",
"parent": "#<Suite>",
"ctx": "#<Context>"
}
✓ should pass
2 passing (9ms)
fedoseev-vitaliy commented
i have the same issue
zetflo commented
i have the same issue
In line 75 into file lib/contextProxy.js Console.log is present
suguru03 commented
@danielstjules I have the same issue too.
I can't see the console.log
on the master branch, but v0.15.4
on npm seems to include console.log
.
Could you publish a new version?
millerick commented
@danielstjules following up on this. It looks like what is published as v.0.15.4
does not match what is in source control.
heisian commented
same issue here..
iMacHumphries commented
+1
Shakes03 commented
+1
danielstjules commented
Published 0.15.5, sorry all!