Node.js - why am I experiencing leaks when testing with mocha and zombies?

I tried to get zombie to work with mocha, but if I do not use the parameters of the mocha --ignore-leaks command, my test always fails with an error:

Error: global leaks detected: k, i, name, chars, char

My test looks exactly the same as in this section: Mocha and ZombieJS

I would like to post my question there, but as a beginner, I can not comment on the thread, I ask a new question.

Do you have any idea why I am getting these leaks? I am using mocha 1.0.3 and zombie 1.0.0.

+5
source share
1 answer

, node_modules, . , , , var.

// global leaks
a = 1;

// no leaks
var a = 1;

Node.js coffeescript, . ( , var) http://coffeescript.org/

, https://github.com/twilson63/express-coffee

+6

All Articles