Skip to content

Commit

Permalink
deps: patch jest-environment-node to work on v18
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Feb 1, 2024
1 parent a8857df commit e02b15f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
13 changes: 13 additions & 0 deletions .yarn/patches/jest-environment-node-npm-28.1.3-46a696a38b.patch
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;
},
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
16 changes: 15 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16381,7 +16381,7 @@ __metadata:
languageName: node
linkType: hard

"jest-environment-node@npm:^28.1.3":
"jest-environment-node@npm:28.1.3":
version: 28.1.3
resolution: "jest-environment-node@npm:28.1.3"
dependencies:
Expand All @@ -16395,6 +16395,20 @@ __metadata:
languageName: node
linkType: hard

"jest-environment-node@patch:jest-environment-node@npm%3A28.1.3#./.yarn/patches/jest-environment-node-npm-28.1.3-46a696a38b.patch::locator=%40yarnpkg%2Fmonorepo%40workspace%3A.":
version: 28.1.3
resolution: "jest-environment-node@patch:jest-environment-node@npm%3A28.1.3#./.yarn/patches/jest-environment-node-npm-28.1.3-46a696a38b.patch::version=28.1.3&hash=ced26a&locator=%40yarnpkg%2Fmonorepo%40workspace%3A."
dependencies:
"@jest/environment": ^28.1.3
"@jest/fake-timers": ^28.1.3
"@jest/types": ^28.1.3
"@types/node": "*"
jest-mock: ^28.1.3
jest-util: ^28.1.3
checksum: 8a482735a77ff27355fe0bca5127502b15df9bb9cf7f2b36ae860347e8b8ff8357206f6993e3b0f6a25c2cb20a2df23359212247cf2930ee370a3f0dbb9075c2
languageName: node
linkType: hard

"jest-get-type@npm:^24.8.0, jest-get-type@npm:^24.9.0":
version: 24.9.0
resolution: "jest-get-type@npm:24.9.0"
Expand Down

0 comments on commit e02b15f

Please sign in to comment.