You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jest can't be launched with node --disable-proto=throw
Expected behavior
Currently, jest-haste-map calls deprecated proto.
Actual behavior
Here is a proposed patch
--- a/packages/jest-haste-map/src/watchers/WatchmanWatcher.js+++ b/packages/jest-haste-map/src/watchers/WatchmanWatcher.js@@ -35,7 +35,7 @@
}
// eslint-disable-next-line no-proto
-WatchmanWatcher.prototype.__proto__ = EventEmitter.prototype;+Object.setPrototypeOf(WatchmanWatcher.prototype, EventEmitter.prototype);
/**
* Run the watchman `watch` command on the root and subscribe to changes.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
28.1.3
Steps to reproduce
jest can't be launched with
node --disable-proto=throw
Expected behavior
Currently, jest-haste-map calls deprecated proto.
Actual behavior
Here is a proposed patch
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: