Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/jest-util/src/create_process_object.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export default function() {
}

newProcess.env = createProcessEnv();
newProcess.send = () => {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any other functions on it while we're here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've thought about it and I don't think so. Maybe newProcess.exit, but I thougth it was better to let it exit.

Copy link
Member

@SimenB SimenB Mar 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be cool to log a "process.exit() called from test" or something, potentially with a stack. Rarely on purpose, is it?


return newProcess;
}