mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[Core] Update dependency glob to v11.1.0 [SECURITY] - abandoned GitOrigin-RevId: 866612e84e2afd3edc97c244e22faeaff22484cf
34 lines
737 B
JavaScript
34 lines
737 B
JavaScript
const SandboxedModule = require('sandboxed-module')
|
|
const chai = require('chai')
|
|
const sinon = require('sinon')
|
|
|
|
chai.use(require('sinon-chai'))
|
|
chai.use(require('chai-as-promised'))
|
|
|
|
SandboxedModule.configure({
|
|
requires: {
|
|
'@overleaf/logger': {
|
|
debug() {},
|
|
log() {},
|
|
info() {},
|
|
warn() {},
|
|
error() {},
|
|
err() {},
|
|
},
|
|
'@overleaf/metrics': {
|
|
inc: sinon.stub(),
|
|
count: sinon.stub(),
|
|
histogram: sinon.stub(),
|
|
Timer: class Timer {
|
|
done() {}
|
|
},
|
|
},
|
|
},
|
|
globals: { Buffer, Math, console, process, URL },
|
|
sourceTransformers: {
|
|
removeNodePrefix: function (source) {
|
|
return source.replace(/require\((['"])node:/g, 'require($1')
|
|
},
|
|
},
|
|
})
|