Skip to content

Commit

Permalink
Fix failing tests from #5340 (#5342)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanpoulter authored and SimenB committed Jan 18, 2018
1 parent 06bbe2d commit 054271c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions packages/jest-editor-support/src/__tests__/process.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ describe('createProcess', () => {
});

it('defines the "CI" environment variable', () => {
const expected = {
...process.env,
CI: 'true',
};
const expected = Object.assign({}, process.env, {CI: 'true'});

const workspace: any = {pathToJest: ''};
const args = [];
Expand Down
1 change: 1 addition & 0 deletions packages/jest-editor-support/src/__tests__/runner.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ describe('events', () => {
fakeProcess = (new EventEmitter(): any);
fakeProcess.stdout = new EventEmitter();
fakeProcess.stderr = new EventEmitter();
fakeProcess.kill = () => {};

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

Expand Down

0 comments on commit 054271c

Please sign in to comment.