diff --git a/TestUtils.ts b/TestUtils.ts index 7150270a7b2e..827890f683fa 100644 --- a/TestUtils.ts +++ b/TestUtils.ts @@ -55,6 +55,7 @@ const DEFAULT_GLOBAL_CONFIG: Config.GlobalConfig = { testNamePattern: '', testPathPattern: '', testResultsProcessor: null, + testSequencer: '@jest/test-sequencer', testTimeout: 5000, updateSnapshot: 'none', useStderr: false, diff --git a/e2e/runJest.ts b/e2e/runJest.ts index 9ef973a499c6..a16897b5635a 100644 --- a/e2e/runJest.ts +++ b/e2e/runJest.ts @@ -8,8 +8,8 @@ import path from 'path'; import fs from 'fs'; +import {Writable} from 'stream'; import execa, {ExecaChildProcess, ExecaReturns} from 'execa'; -import {Writable} from 'readable-stream'; import stripAnsi from 'strip-ansi'; import {normalizeIcons} from './Utils'; @@ -148,7 +148,7 @@ export const until = async function( ) { const jestPromise = spawnJest(dir, args, {timeout: 30000, ...options}, true); - jestPromise.stderr.pipe( + jestPromise.stderr!.pipe( new Writable({ write(chunk, _encoding, callback) { const output = chunk.toString('utf8'); diff --git a/package.json b/package.json index a817d73e3830..097f17103657 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "prettylint": "^1.0.0", "progress": "^2.0.0", "promise": "^8.0.2", - "readable-stream": "^3.0.3", "realpath-native": "^1.1.0", "resolve": "^1.4.0", "rimraf": "^2.6.2", diff --git a/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap b/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap index 357612825f0a..89a8b2173338 100644 --- a/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap +++ b/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap @@ -112,6 +112,7 @@ exports[`prints the config object 1`] = ` "testNamePattern": "", "testPathPattern": "", "testResultsProcessor": null, + "testSequencer": "@jest/test-sequencer", "testTimeout": 5000, "updateSnapshot": "none", "useStderr": false, diff --git a/yarn.lock b/yarn.lock index 2f1c8c46222e..300fe7317a4c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11391,7 +11391,7 @@ read@1, read@~1.0.1: string_decoder "~1.1.1" util-deprecate "~1.0.1" -"readable-stream@2 || 3", readable-stream@^3.0.2, readable-stream@^3.0.3, readable-stream@^3.1.1: +"readable-stream@2 || 3", readable-stream@^3.0.2, readable-stream@^3.1.1: version "3.4.0" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.4.0.tgz#a51c26754658e0a3c21dbf59163bd45ba6f447fc" integrity sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==