Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override "process.send" with a mock (#5904)
When creating a mock object for `process`, `process.send` is just referenced from the parent context, which means that a test has access to the real IPC channel established by `jest-worker`, thus breaking the sandbox. As per the Node definition, `process.send` is not defined if the Node process hasn't started off a `fork` call; but this shouldn't be an issue because `send` has always been exposed and no one complained so far 🙃
- Loading branch information