mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 19:14:41 +00:00
22 lines
400 B
JavaScript
22 lines
400 B
JavaScript
|
const chai = require('chai')
|
||
|
const SandboxedModule = require('sandboxed-module')
|
||
|
|
||
|
// Chai configuration
|
||
|
chai.should()
|
||
|
|
||
|
// SandboxedModule configuration
|
||
|
SandboxedModule.configure({
|
||
|
requires: {
|
||
|
'logger-sharelatex': {
|
||
|
debug() {},
|
||
|
log() {},
|
||
|
info() {},
|
||
|
warn() {},
|
||
|
err() {},
|
||
|
error() {},
|
||
|
fatal() {}
|
||
|
}
|
||
|
},
|
||
|
globals: { Buffer, JSON, console, process }
|
||
|
})
|