mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
958216d578
[clsi] upgrade logger and metrics module GitOrigin-RevId: 85c346b5eed683672a77d86d6a434dc313b7824b
22 lines
437 B
JavaScript
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 },
|
|
})
|