Skip to content

Commit

Permalink
chore: correct type error in e2e test util (#8705)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Jul 17, 2019
1 parent fef2249 commit f4c6e31
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const DEFAULT_GLOBAL_CONFIG: Config.GlobalConfig = {
testNamePattern: '',
testPathPattern: '',
testResultsProcessor: null,
testSequencer: '@jest/test-sequencer',
testTimeout: 5000,
updateSnapshot: 'none',
useStderr: false,
Expand Down
4 changes: 2 additions & 2 deletions e2e/runJest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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');
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ exports[`prints the config object 1`] = `
"testNamePattern": "",
"testPathPattern": "",
"testResultsProcessor": null,
"testSequencer": "@jest/test-sequencer",
"testTimeout": 5000,
"updateSnapshot": "none",
"useStderr": false,
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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==
Expand Down

0 comments on commit f4c6e31

Please sign in to comment.