Skip to content

Commit

Permalink
fix(ci): do not run e2e sub-tests in band
Browse files Browse the repository at this point in the history
  • Loading branch information
huafu committed Sep 1, 2018
1 parent a2b6d59 commit 18ad865
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion e2e/__helpers__/test-case/run-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions e2e/__helpers__/test-case/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 18ad865

Please sign in to comment.