From 42d78528aebb1b719cab98e5f51983f9e0fdd52f Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Mon, 7 Feb 2022 11:46:38 +0000 Subject: [PATCH] Merge pull request #6572 from overleaf/jpa-web-unit-tests-npm-workspaces [web] adjust unit test setup for npm workspaces GitOrigin-RevId: 4c6f6debbc082301570173345cc366984a9c59f1 --- services/web/package-lock.json | 13 ++++++------- services/web/package.json | 2 +- services/web/test/unit/bootstrap.js | 1 + 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/services/web/package-lock.json b/services/web/package-lock.json index bb7ef7c0b9..064315cfba 100644 --- a/services/web/package-lock.json +++ b/services/web/package-lock.json @@ -34664,13 +34664,12 @@ } }, "sandboxed-module": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/sandboxed-module/-/sandboxed-module-2.0.4.tgz", - "integrity": "sha512-AwEPOdO8mg/wJjr876yCHP2DHqVN0MaggEXhp6IIf3bcI5cYoQl9QrrCHSrvToHjvdEiS5x4TVZRgjD2bEmNTA==", + "version": "https://github.com/overleaf/node-sandboxed-module/archive/cafa2d60f17ce75cc023e6f296eb8de79d92d35d.tar.gz", + "integrity": "sha512-8h+3BGQj0Xou2mRYrRpFvDQ5Ne0/obZH9X27m/5zVMrvckNQazn1YPab7OE45VMzOI25iE9e0602QY2QmEnANQ==", "dev": true, "requires": { "require-like": "0.1.2", - "stack-trace": "0.0.9" + "stack-trace": "0.0.10" } }, "sane": { @@ -35792,9 +35791,9 @@ "dev": true }, "stack-trace": { - "version": "0.0.9", - "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.9.tgz", - "integrity": "sha1-qPbq7KkGdMMz58Q5U/J1tFFRBpU=", + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", "dev": true }, "stackframe": { diff --git a/services/web/package.json b/services/web/package.json index d8a4465f46..9ced2e0e4d 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -280,7 +280,7 @@ "prettier": "2.5.1", "requirejs": "^2.3.6", "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-chai": "^3.5.0", "sinon-mongoose": "^2.3.0", diff --git a/services/web/test/unit/bootstrap.js b/services/web/test/unit/bootstrap.js index 3d5328a8d8..89e8f3b47b 100644 --- a/services/web/test/unit/bootstrap.js +++ b/services/web/test/unit/bootstrap.js @@ -44,6 +44,7 @@ const globalStubs = { const SandboxedModule = require('sandboxed-module') SandboxedModule.configure({ + ignoreMissing: true, requires: getSandboxedModuleRequires(), globals: { Buffer, Promise, console, process }, })