From 18ad865b9e5cb87228a0a15141a7de7f2c56a9bc Mon Sep 17 00:00:00 2001 From: Huafu Gandon Date: Sat, 1 Sep 2018 10:43:54 +0200 Subject: [PATCH] fix(ci): do not run e2e sub-tests in band --- e2e/__helpers__/test-case/run-result.ts | 4 +++- e2e/__helpers__/test-case/runtime.ts | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/e2e/__helpers__/test-case/run-result.ts b/e2e/__helpers__/test-case/run-result.ts index 948430ae96..3aa301542b 100644 --- a/e2e/__helpers__/test-case/run-result.ts +++ b/e2e/__helpers__/test-case/run-result.ts @@ -35,7 +35,9 @@ export default class RunResult { get stdout() { return stripAnsiColors((this.result.stdout || '').toString()) } get normalizedStdout() { return normalizeJestOutput(this.stdout) } get cmdLine() { - return [this.context.cmd, ...this.context.args].filter(a => !['-u', '--updateSnapshot'].includes(a)).join(' ') + return [this.context.cmd, ...this.context.args] + .filter(a => !['-u', '--updateSnapshot', '--runInBand'].includes(a)) + .join(' ') } ioFor(relFilePath: string): ProcessedFileIo { diff --git a/e2e/__helpers__/test-case/runtime.ts b/e2e/__helpers__/test-case/runtime.ts index f220839db9..0ab61f8053 100644 --- a/e2e/__helpers__/test-case/runtime.ts +++ b/e2e/__helpers__/test-case/runtime.ts @@ -97,9 +97,9 @@ export function run(name: string, options: RunTestOptions = {}): RunResult { } // run in band - // if (!cmdArgs.includes('--runInBand')) { - // cmdArgs.push('--runInBand') - // } + if (!cmdArgs.includes('--runInBand')) { + cmdArgs.push('--runInBand') + } const cmd = cmdArgs.shift() as string