overleaf/services/clsi/test/setup.js
Jakob Ackermann 958216d578 Merge pull request #6926 from overleaf/jpa-clsi-bump-logger-metrics
[clsi] upgrade logger and metrics module

GitOrigin-RevId: 85c346b5eed683672a77d86d6a434dc313b7824b
2022-03-02 09:02:50 +00:00

22 lines
437 B
JavaScript

const chai = require('chai')
const sinonChai = require('sinon-chai')
const SandboxedModule = require('sandboxed-module')
// Setup chai
chai.should()
chai.use(sinonChai)
// Global SandboxedModule settings
SandboxedModule.configure({
requires: {
'@overleaf/logger': {
debug() {},
log() {},
info() {},
warn() {},
error() {},
err() {},
},
},
globals: { Buffer, console, process, URL },
})