[misc] back-fill stubbing of mongodb package in sandboxed-module imports (#3209)

* [misc] back-fill stubbing of mongodb package in sandboxed-module imports

Unit tests are about 10 percent faster: 9m16s vs 10m8s.

* [misc] stubs: app code should have access to the ObjectId only

GitOrigin-RevId: 9a52186e190863c9463b3aeb98c3db68011926e4
This commit is contained in:
Jakob Ackermann
2020-10-05 10:23:21 +02:00
committed by Copybot
parent 6f6a9e714d
commit b3197b5f12
15 changed files with 17 additions and 1 deletions
@@ -186,6 +186,7 @@ describe('ProjectEntityMongoUpdateHandler', function() {
console: console
},
requires: {
mongodb: { ObjectId },
'logger-sharelatex': this.logger,
'settings-sharelatex': this.Settings,
'../Cooldown/CooldownManager': this.CooldownManager,