Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix running server in E2E tests

Chocobozzz414875a220b5
diff --git a/client/e2e/src/utils/server.ts b/client/e2e/src/utils/server.ts
index 227f4aea67..dede32e9aa 100644
--- a/client/e2e/src/utils/server.ts
+++ b/client/e2e/src/utils/server.ts
@@ -3,6 +3,8 @@ import { join, resolve } from 'path'
function runServer (appInstance: number, config: any = {}) {
const env = Object.create(process.env)
+
+ env['NODE_OPTIONS'] = ''
env['NODE_ENV'] = 'test'
env['NODE_APP_INSTANCE'] = appInstance + ''
@@ -43,7 +45,10 @@ function runServer (appInstance: number, config: any = {}) {
function runCommand (command: string) {
return new Promise<void>((res, rej) => {
- const p = exec(command, { cwd: getRootCWD() })
+ // Reset NODE_OPTIONS env set by webdriverio
+ const env = { ...process.env, NODE_OPTIONS: '' }
+
+ const p = exec(command, { env, cwd: getRootCWD() })
p.stderr.on('data', data => console.error(data.toString()))
p.on('error', err => rej(err))