Skip to content

Commit

Permalink
fix: return correct type from process.send stub (#11799)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar authored Sep 9, 2021
1 parent d6e5ddb commit ae990f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- `[@jest/reporters]` Use async transform if available to transform files with no coverage ([#11852](https://github.com/facebook/jest/pull/11852))
- `[jest-util]` Return correct value from `process.send` stub ([#11799](https://github.com/facebook/jest/pull/11799))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-util/src/createProcessObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function (): NodeJS.Process {
}

newProcess.env = createProcessEnv();
newProcess.send = () => {};
newProcess.send = () => true;

Object.defineProperty(newProcess, 'domain', {
get() {
Expand Down

0 comments on commit ae990f0

Please sign in to comment.