Merge pull request #6572 from overleaf/jpa-web-unit-tests-npm-workspaces

[web] adjust unit test setup for npm workspaces

GitOrigin-RevId: 4c6f6debbc082301570173345cc366984a9c59f1
This commit is contained in:
Jakob Ackermann 2022-02-07 11:46:38 +00:00 committed by Copybot
parent 830d1ab89f
commit 42d78528ae
3 changed files with 8 additions and 8 deletions

View file

@ -34664,13 +34664,12 @@
} }
}, },
"sandboxed-module": { "sandboxed-module": {
"version": "2.0.4", "version": "https://github.com/overleaf/node-sandboxed-module/archive/cafa2d60f17ce75cc023e6f296eb8de79d92d35d.tar.gz",
"resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-2.0.4.tgz", "integrity": "sha512-8h+3BGQj0Xou2mRYrRpFvDQ5Ne0/obZH9X27m/5zVMrvckNQazn1YPab7OE45VMzOI25iE9e0602QY2QmEnANQ==",
"integrity": "sha512-AwEPOdO8mg/wJjr876yCHP2DHqVN0MaggEXhp6IIf3bcI5cYoQl9QrrCHSrvToHjvdEiS5x4TVZRgjD2bEmNTA==",
"dev": true, "dev": true,
"requires": { "requires": {
"require-like": "0.1.2", "require-like": "0.1.2",
"stack-trace": "0.0.9" "stack-trace": "0.0.10"
} }
}, },
"sane": { "sane": {
@ -35792,9 +35791,9 @@
"dev": true "dev": true
}, },
"stack-trace": { "stack-trace": {
"version": "0.0.9", "version": "0.0.10",
"resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.9.tgz", "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz",
"integrity": "sha1-qPbq7KkGdMMz58Q5U/J1tFFRBpU=", "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=",
"dev": true "dev": true
}, },
"stackframe": { "stackframe": {

View file

@ -280,7 +280,7 @@
"prettier": "2.5.1", "prettier": "2.5.1",
"requirejs": "^2.3.6", "requirejs": "^2.3.6",
"samlp": "^3.4.1", "samlp": "^3.4.1",
"sandboxed-module": "^2.0.4", "sandboxed-module": "https://github.com/overleaf/node-sandboxed-module/archive/cafa2d60f17ce75cc023e6f296eb8de79d92d35d.tar.gz",
"sinon": "^7.5.0", "sinon": "^7.5.0",
"sinon-chai": "^3.5.0", "sinon-chai": "^3.5.0",
"sinon-mongoose": "^2.3.0", "sinon-mongoose": "^2.3.0",

View file

@ -44,6 +44,7 @@ const globalStubs = {
const SandboxedModule = require('sandboxed-module') const SandboxedModule = require('sandboxed-module')
SandboxedModule.configure({ SandboxedModule.configure({
ignoreMissing: true,
requires: getSandboxedModuleRequires(), requires: getSandboxedModuleRequires(),
globals: { Buffer, Promise, console, process }, globals: { Buffer, Promise, console, process },
}) })