Skip to content

Commit

Permalink
chore: Patch jest to not use JSON serialization in message passing ci3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino authored Jan 3, 2025
1 parent ad70e9a commit d08f540
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
13 changes: 13 additions & 0 deletions yarn-project/.yarn/patches/jest-runner-npm-29.7.0-3bc9f82b58.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 65c0ed180a1f44a5095f80d572aacb68be1db3da..3bb4938110a50a2eca1b2f01466b7be16c9c8145 100644
--- a/build/index.js
+++ b/build/index.js
@@ -124,7 +124,7 @@ class TestRunner extends _types.EmittingTestRunner {
enableWorkerThreads: this._globalConfig.workerThreads,
exposedMethods: ['worker'],
forkOptions: {
- serialization: 'json',
+ serialization: 'advanced',
stdio: 'pipe'
},
// The workerIdleMemoryLimit should've been converted to a number during
3 changes: 2 additions & 1 deletion yarn-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@noir-lang/types": "portal:../noir/packages/types",
"@noir-lang/noirc_abi": "portal:../noir/packages/noirc_abi",
"@noir-lang/noir_codegen": "portal:../noir/packages/noir_codegen",
"@noir-lang/noir_js": "file:../noir/packages/noir_js"
"@noir-lang/noir_js": "file:../noir/packages/noir_js",
"jest-runner@npm:^29.7.0": "patch:jest-runner@npm%3A29.7.0#~/.yarn/patches/jest-runner-npm-29.7.0-3bc9f82b58.patch"
}
}
31 changes: 30 additions & 1 deletion yarn-project/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13290,7 +13290,7 @@ __metadata:
languageName: node
linkType: hard

"jest-runner@npm:^29.7.0":
"jest-runner@npm:29.7.0":
version: 29.7.0
resolution: "jest-runner@npm:29.7.0"
dependencies:
Expand Down Expand Up @@ -13319,6 +13319,35 @@ __metadata:
languageName: node
linkType: hard

"jest-runner@patch:jest-runner@npm%3A29.7.0#~/.yarn/patches/jest-runner-npm-29.7.0-3bc9f82b58.patch":
version: 29.7.0
resolution: "jest-runner@patch:jest-runner@npm%3A29.7.0#~/.yarn/patches/jest-runner-npm-29.7.0-3bc9f82b58.patch::version=29.7.0&hash=a79dea"
dependencies:
"@jest/console": "npm:^29.7.0"
"@jest/environment": "npm:^29.7.0"
"@jest/test-result": "npm:^29.7.0"
"@jest/transform": "npm:^29.7.0"
"@jest/types": "npm:^29.6.3"
"@types/node": "npm:*"
chalk: "npm:^4.0.0"
emittery: "npm:^0.13.1"
graceful-fs: "npm:^4.2.9"
jest-docblock: "npm:^29.7.0"
jest-environment-node: "npm:^29.7.0"
jest-haste-map: "npm:^29.7.0"
jest-leak-detector: "npm:^29.7.0"
jest-message-util: "npm:^29.7.0"
jest-resolve: "npm:^29.7.0"
jest-runtime: "npm:^29.7.0"
jest-util: "npm:^29.7.0"
jest-watcher: "npm:^29.7.0"
jest-worker: "npm:^29.7.0"
p-limit: "npm:^3.1.0"
source-map-support: "npm:0.5.13"
checksum: 10/d520c4f40179a22626d547b9fdf5f802a7e40d27e50f13a3ecca327581e78164dcdc8c650ed2974ef8f82caef935f7e356f7ce2d1f8dac65a9556101da79a27c
languageName: node
linkType: hard

"jest-runtime@npm:^29.7.0":
version: 29.7.0
resolution: "jest-runtime@npm:29.7.0"
Expand Down

0 comments on commit d08f540

Please sign in to comment.