-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps: patch jest-environment-node to work on v18
Backports jestjs/jest#13467
- Loading branch information
Showing
5 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
.yarn/patches/jest-environment-node-npm-28.1.3-46a696a38b.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/build/index.js b/build/index.js | ||
index 3c0fb4aeec446cd49ae74262620c629dae962f0d..293191019f776a43fe8ce3613ad071ae5a47649a 100644 | ||
--- a/build/index.js | ||
+++ b/build/index.js | ||
@@ -111,7 +111,7 @@ class NodeEnvironment { | ||
configurable: descriptor.configurable, | ||
enumerable: descriptor.enumerable, | ||
value: val, | ||
- writable: descriptor.writable | ||
+ writable: descriptor.writable === true || nodeGlobalsKey === 'performance' | ||
}); | ||
return val; | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,8 @@ | |
}, | ||
"resolutions": { | ||
"ink": "patch:ink@npm%3A3.0.8#./.yarn/patches/ink-npm-3.0.8-3a8005f59f.patch", | ||
"yoga-layout-prebuilt": "patch:[email protected]#./.yarn/patches/yoga-layout-prebuilt.patch" | ||
"yoga-layout-prebuilt": "patch:[email protected]#./.yarn/patches/yoga-layout-prebuilt.patch", | ||
"jest-environment-node@^28.1.3": "patch:jest-environment-node@npm%3A28.1.3#./.yarn/patches/jest-environment-node-npm-28.1.3-46a696a38b.patch" | ||
}, | ||
"dependenciesMeta": { | ||
"core-js": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters