overleaf/services/notifications/test/setup.js
Eric Mc Sween 821972b791 Add global test setup
Configure chai and SandboxedModule in a central place and add
SandboxedModule globals that are required in Node 12.
2021-03-17 16:34:06 -04:00

21 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 }
})