recoder-code
Version:
Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities
20 lines (16 loc) • 420 B
JavaScript
var logger = require('../lib/logger');
var sinon = require('sinon');
var sinonChai = require('sinon-chai');
var chai = require('chai');
chai.use(sinonChai);
if (process.env.LOGGING !== 'true') {
// Silence the logger for tests by setting all its methods to no-ops
logger.setMethods({
info: function() {},
warn: function() {},
error: function() {}
});
}
afterEach(function() {
sinon.restore();
});