Skip to content

Commit 054271c

Browse files
seanpoulterSimenB
authored andcommitted
Fix failing tests from #5340 (#5342)
1 parent 06bbe2d commit 054271c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/jest-editor-support/src/__tests__/process.test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ describe('createProcess', () => {
8686
});
8787

8888
it('defines the "CI" environment variable', () => {
89-
const expected = {
90-
...process.env,
91-
CI: 'true',
92-
};
89+
const expected = Object.assign({}, process.env, {CI: 'true'});
9390

9491
const workspace: any = {pathToJest: ''};
9592
const args = [];

packages/jest-editor-support/src/__tests__/runner.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ describe('events', () => {
260260
fakeProcess = (new EventEmitter(): any);
261261
fakeProcess.stdout = new EventEmitter();
262262
fakeProcess.stderr = new EventEmitter();
263+
fakeProcess.kill = () => {};
263264

264265
(createProcess: any).mockImplementation(() => fakeProcess);
265266

0 commit comments

Comments
 (0)