Closed bitsoflogic closed 10 years ago
This error occurs every time I start running the mocha tests from scratch: Error: global leak detected: _
mocha
Error: global leak detected: _
The test to reproduce:
describe('ORM', function() { it('will leak', function() { var orm = require('orm'); }); });
I went one step further to see if lodash was the problem.
lodash
describe('Lodash', function() { it('will not leak', function() { var _ = require('lodash'); }); });
Only the require('orm') produced the leak.
require('orm')
Found the source of the leak in Utilities.js. Putting together a PR.
I see this was resolved a few weeks ago... It's just not available via npm install orm yet.
npm install orm
This error occurs every time I start running the
mocha
tests from scratch:Error: global leak detected: _
The test to reproduce:
I went one step further to see if
lodash
was the problem.Only the
require('orm')
produced the leak.