From 841bf48c27767c3a4a53aacd0115582e8397910f Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 9 Dec 2024 16:10:06 -0300 Subject: [PATCH] chore: Bump jest default test timeout to 30s (#10550) Across all packages. --- yarn-project/accounts/package.json | 3 ++- yarn-project/archiver/package.json | 3 ++- yarn-project/aztec-faucet/package.json | 3 ++- yarn-project/aztec-node/package.json | 3 ++- yarn-project/aztec.js/package.json | 3 ++- yarn-project/aztec/package.json | 3 ++- yarn-project/bb-prover/package.json | 3 ++- yarn-project/bot/package.json | 3 ++- yarn-project/builder/package.json | 3 ++- yarn-project/circuit-types/package.json | 3 ++- yarn-project/circuits.js/package.json | 3 ++- yarn-project/cli-wallet/package.json | 3 ++- yarn-project/cli/package.json | 3 ++- yarn-project/end-to-end/package.json | 3 ++- yarn-project/entrypoints/package.json | 3 ++- yarn-project/epoch-cache/package.json | 3 ++- yarn-project/ethereum/package.json | 5 +++-- yarn-project/foundation/package.json | 3 ++- yarn-project/ivc-integration/package.json | 3 ++- yarn-project/key-store/package.json | 3 ++- yarn-project/kv-store/package.json | 3 ++- yarn-project/merkle-tree/package.json | 4 ++-- yarn-project/noir-contracts.js/package.json | 3 ++- .../noir-protocol-circuits-types/package.json | 3 ++- yarn-project/p2p-bootstrap/package.json | 3 ++- yarn-project/p2p/package.json | 2 +- yarn-project/package.common.json | 22 +++++++++++++++---- yarn-project/proof-verifier/package.json | 3 ++- yarn-project/protocol-contracts/package.json | 3 ++- yarn-project/prover-client/package.json | 3 ++- yarn-project/prover-node/package.json | 3 ++- yarn-project/pxe/package.json | 5 +++-- yarn-project/scripts/package.json | 3 ++- yarn-project/sequencer-client/package.json | 3 ++- yarn-project/simulator/package.json | 3 ++- yarn-project/telemetry-client/package.json | 3 ++- yarn-project/txe/package.json | 3 ++- yarn-project/types/package.json | 3 ++- yarn-project/validator-client/package.json | 3 ++- yarn-project/world-state/package.json | 3 ++- 40 files changed, 97 insertions(+), 46 deletions(-) diff --git a/yarn-project/accounts/package.json b/yarn-project/accounts/package.json index 6af84aee1c9..efa1f66e06c 100644 --- a/yarn-project/accounts/package.json +++ b/yarn-project/accounts/package.json @@ -71,7 +71,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/aztec.js": "workspace:^", diff --git a/yarn-project/archiver/package.json b/yarn-project/archiver/package.json index 22579ff402e..c92d80bfe57 100644 --- a/yarn-project/archiver/package.json +++ b/yarn-project/archiver/package.json @@ -61,7 +61,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/aztec-faucet/package.json b/yarn-project/aztec-faucet/package.json index 6d8ccc7a022..9315089fa18 100644 --- a/yarn-project/aztec-faucet/package.json +++ b/yarn-project/aztec-faucet/package.json @@ -55,7 +55,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/ethereum": "workspace:^", diff --git a/yarn-project/aztec-node/package.json b/yarn-project/aztec-node/package.json index f4ff3480301..ab293ce4ada 100644 --- a/yarn-project/aztec-node/package.json +++ b/yarn-project/aztec-node/package.json @@ -57,7 +57,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/archiver": "workspace:^", diff --git a/yarn-project/aztec.js/package.json b/yarn-project/aztec.js/package.json index 98f57facfd7..0c7447bd644 100644 --- a/yarn-project/aztec.js/package.json +++ b/yarn-project/aztec.js/package.json @@ -73,7 +73,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/aztec/package.json b/yarn-project/aztec/package.json index 2ac1f232f67..7d98ce7812f 100644 --- a/yarn-project/aztec/package.json +++ b/yarn-project/aztec/package.json @@ -109,7 +109,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "engines": { "node": ">=18" diff --git a/yarn-project/bb-prover/package.json b/yarn-project/bb-prover/package.json index d0951ac373f..9ea893b2962 100644 --- a/yarn-project/bb-prover/package.json +++ b/yarn-project/bb-prover/package.json @@ -62,7 +62,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/bot/package.json b/yarn-project/bot/package.json index af35f5befbd..1bef173a590 100644 --- a/yarn-project/bot/package.json +++ b/yarn-project/bot/package.json @@ -49,7 +49,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/accounts": "workspace:^", diff --git a/yarn-project/builder/package.json b/yarn-project/builder/package.json index 597b83807a1..602a934a970 100644 --- a/yarn-project/builder/package.json +++ b/yarn-project/builder/package.json @@ -65,7 +65,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/foundation": "workspace:^", diff --git a/yarn-project/circuit-types/package.json b/yarn-project/circuit-types/package.json index 76e7250310e..32e46a6bd57 100644 --- a/yarn-project/circuit-types/package.json +++ b/yarn-project/circuit-types/package.json @@ -63,7 +63,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuits.js": "workspace:^", diff --git a/yarn-project/circuits.js/package.json b/yarn-project/circuits.js/package.json index 009150b8807..ada850753b6 100644 --- a/yarn-project/circuits.js/package.json +++ b/yarn-project/circuits.js/package.json @@ -97,6 +97,7 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 } } diff --git a/yarn-project/cli-wallet/package.json b/yarn-project/cli-wallet/package.json index 6706f3273b3..2d75d430b59 100644 --- a/yarn-project/cli-wallet/package.json +++ b/yarn-project/cli-wallet/package.json @@ -63,7 +63,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/accounts": "workspace:^", diff --git a/yarn-project/cli/package.json b/yarn-project/cli/package.json index c70eeffc78b..1165f8b04fb 100644 --- a/yarn-project/cli/package.json +++ b/yarn-project/cli/package.json @@ -63,7 +63,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/archiver": "workspace:^", diff --git a/yarn-project/end-to-end/package.json b/yarn-project/end-to-end/package.json index 97faceb22f7..1344ee5de94 100644 --- a/yarn-project/end-to-end/package.json +++ b/yarn-project/end-to-end/package.json @@ -155,6 +155,7 @@ "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "testTimeout": 30000 } } diff --git a/yarn-project/entrypoints/package.json b/yarn-project/entrypoints/package.json index 6a278c79364..bc4b5352b6a 100644 --- a/yarn-project/entrypoints/package.json +++ b/yarn-project/entrypoints/package.json @@ -59,7 +59,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/aztec.js": "workspace:^", diff --git a/yarn-project/epoch-cache/package.json b/yarn-project/epoch-cache/package.json index ed86b9c1b59..30ff934d850 100644 --- a/yarn-project/epoch-cache/package.json +++ b/yarn-project/epoch-cache/package.json @@ -86,7 +86,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "engines": { "node": ">=18" diff --git a/yarn-project/ethereum/package.json b/yarn-project/ethereum/package.json index f6be604435c..0e34d8dcbf1 100644 --- a/yarn-project/ethereum/package.json +++ b/yarn-project/ethereum/package.json @@ -85,9 +85,10 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "engines": { "node": ">=18" } -} +} \ No newline at end of file diff --git a/yarn-project/foundation/package.json b/yarn-project/foundation/package.json index ae009fa8304..36fd1e55a25 100644 --- a/yarn-project/foundation/package.json +++ b/yarn-project/foundation/package.json @@ -96,7 +96,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/bb.js": "portal:../../barretenberg/ts", diff --git a/yarn-project/ivc-integration/package.json b/yarn-project/ivc-integration/package.json index 54c7f409712..cadb0ac977d 100644 --- a/yarn-project/ivc-integration/package.json +++ b/yarn-project/ivc-integration/package.json @@ -58,7 +58,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/bb.js": "../../ts", diff --git a/yarn-project/key-store/package.json b/yarn-project/key-store/package.json index c66a9bd63a9..8b13546037a 100644 --- a/yarn-project/key-store/package.json +++ b/yarn-project/key-store/package.json @@ -53,7 +53,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/kv-store/package.json b/yarn-project/kv-store/package.json index 6bdc1eeb3e3..1c795da1a6c 100644 --- a/yarn-project/kv-store/package.json +++ b/yarn-project/kv-store/package.json @@ -90,6 +90,7 @@ ] ], "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "testTimeout": 30000 } } diff --git a/yarn-project/merkle-tree/package.json b/yarn-project/merkle-tree/package.json index 15447b9c794..47e394fda28 100644 --- a/yarn-project/merkle-tree/package.json +++ b/yarn-project/merkle-tree/package.json @@ -28,7 +28,6 @@ }, "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", "rootDir": "./src", - "testTimeout": 15000, "transform": { "^.+\\.tsx?$": [ "@swc/jest", @@ -55,7 +54,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/noir-contracts.js/package.json b/yarn-project/noir-contracts.js/package.json index eff346f3fe9..71bad516291 100644 --- a/yarn-project/noir-contracts.js/package.json +++ b/yarn-project/noir-contracts.js/package.json @@ -53,7 +53,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/aztec.js": "workspace:^", diff --git a/yarn-project/noir-protocol-circuits-types/package.json b/yarn-project/noir-protocol-circuits-types/package.json index 9f5c57ee8c7..3f2549b9005 100644 --- a/yarn-project/noir-protocol-circuits-types/package.json +++ b/yarn-project/noir-protocol-circuits-types/package.json @@ -57,7 +57,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuits.js": "workspace:^", diff --git a/yarn-project/p2p-bootstrap/package.json b/yarn-project/p2p-bootstrap/package.json index 193f46768f3..6da59d79665 100644 --- a/yarn-project/p2p-bootstrap/package.json +++ b/yarn-project/p2p-bootstrap/package.json @@ -81,7 +81,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "engines": { "node": ">=18" diff --git a/yarn-project/p2p/package.json b/yarn-project/p2p/package.json index 9fffdafad29..79ed2a4b867 100644 --- a/yarn-project/p2p/package.json +++ b/yarn-project/p2p/package.json @@ -60,7 +60,7 @@ } ] ], - "testTimeout": 15000 + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/package.common.json b/yarn-project/package.common.json index f3d2aca61c5..8fd6e79b1fd 100644 --- a/yarn-project/package.common.json +++ b/yarn-project/package.common.json @@ -10,7 +10,11 @@ "engines": { "node": ">=18" }, - "files": ["dest", "src", "!*.test.*"], + "files": [ + "dest", + "src", + "!*.test.*" + ], "devDependencies": { "@jest/globals": "^29.5.0", "@types/jest": "^29.5.0", @@ -19,7 +23,9 @@ "ts-node": "^10.9.1" }, "jest": { - "extensionsToTreatAsEsm": [".ts"], + "extensionsToTreatAsEsm": [ + ".ts" + ], "transform": { "^.+\\.tsx?$": [ "@swc/jest", @@ -39,8 +45,16 @@ "moduleNameMapper": { "^(\\.{1,2}/.*)\\.[cm]?js$": "$1" }, - "reporters": [["default", { "summaryThreshold": 9999 }]], + "reporters": [ + [ + "default", + { + "summaryThreshold": 9999 + } + ] + ], + "testTimeout": 30000, "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", "rootDir": "./src" } -} +} \ No newline at end of file diff --git a/yarn-project/proof-verifier/package.json b/yarn-project/proof-verifier/package.json index 56db1a57b3f..53799548865 100644 --- a/yarn-project/proof-verifier/package.json +++ b/yarn-project/proof-verifier/package.json @@ -74,6 +74,7 @@ ] ], "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "testTimeout": 30000 } } diff --git a/yarn-project/protocol-contracts/package.json b/yarn-project/protocol-contracts/package.json index 0f7dbfa66e2..ad6618938f8 100644 --- a/yarn-project/protocol-contracts/package.json +++ b/yarn-project/protocol-contracts/package.json @@ -64,7 +64,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuits.js": "workspace:^", diff --git a/yarn-project/prover-client/package.json b/yarn-project/prover-client/package.json index 2c01d5617c0..86a92c7c519 100644 --- a/yarn-project/prover-client/package.json +++ b/yarn-project/prover-client/package.json @@ -63,7 +63,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/bb-prover": "workspace:^", diff --git a/yarn-project/prover-node/package.json b/yarn-project/prover-node/package.json index 27c11339930..d4ee18d170b 100644 --- a/yarn-project/prover-node/package.json +++ b/yarn-project/prover-node/package.json @@ -49,7 +49,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/archiver": "workspace:^", diff --git a/yarn-project/pxe/package.json b/yarn-project/pxe/package.json index 043184ef30c..cac834840b9 100644 --- a/yarn-project/pxe/package.json +++ b/yarn-project/pxe/package.json @@ -64,7 +64,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/bb-prover": "workspace:^", @@ -112,4 +113,4 @@ "engines": { "node": ">=18" } -} \ No newline at end of file +} diff --git a/yarn-project/scripts/package.json b/yarn-project/scripts/package.json index 99dc133984f..0b62716012f 100644 --- a/yarn-project/scripts/package.json +++ b/yarn-project/scripts/package.json @@ -83,7 +83,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "engines": { "node": ">=18" diff --git a/yarn-project/sequencer-client/package.json b/yarn-project/sequencer-client/package.json index 9b7e9212da4..e5c56b8809d 100644 --- a/yarn-project/sequencer-client/package.json +++ b/yarn-project/sequencer-client/package.json @@ -109,6 +109,7 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 } } diff --git a/yarn-project/simulator/package.json b/yarn-project/simulator/package.json index 4902b9f74d4..53d15188c54 100644 --- a/yarn-project/simulator/package.json +++ b/yarn-project/simulator/package.json @@ -59,7 +59,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/telemetry-client/package.json b/yarn-project/telemetry-client/package.json index 52702de6db9..2df1379cd7c 100644 --- a/yarn-project/telemetry-client/package.json +++ b/yarn-project/telemetry-client/package.json @@ -83,6 +83,7 @@ ] ], "testRegex": "./src/.*\\.test\\.(js|mjs|ts)$", - "rootDir": "./src" + "rootDir": "./src", + "testTimeout": 30000 } } diff --git a/yarn-project/txe/package.json b/yarn-project/txe/package.json index 0fa9709f348..ff673d798d8 100644 --- a/yarn-project/txe/package.json +++ b/yarn-project/txe/package.json @@ -57,7 +57,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/accounts": "workspace:^", diff --git a/yarn-project/types/package.json b/yarn-project/types/package.json index ac680f83686..688b9ea661b 100644 --- a/yarn-project/types/package.json +++ b/yarn-project/types/package.json @@ -59,7 +59,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/ethereum": "workspace:^", diff --git a/yarn-project/validator-client/package.json b/yarn-project/validator-client/package.json index 23cba4d9036..127f4a25e57 100644 --- a/yarn-project/validator-client/package.json +++ b/yarn-project/validator-client/package.json @@ -56,7 +56,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^", diff --git a/yarn-project/world-state/package.json b/yarn-project/world-state/package.json index 6ffcf4bd889..b684e5055e2 100644 --- a/yarn-project/world-state/package.json +++ b/yarn-project/world-state/package.json @@ -59,7 +59,8 @@ "summaryThreshold": 9999 } ] - ] + ], + "testTimeout": 30000 }, "dependencies": { "@aztec/circuit-types": "workspace:^",