Skip to content

Commit

Permalink
Update jest and ts-jest version (#6706)
Browse files Browse the repository at this point in the history
* update jest and ts-jest versions

* update test snapshots
  • Loading branch information
Muhammad-Altabba committed Jan 9, 2024
1 parent 3cfe56f commit 1eb07d1
Show file tree
Hide file tree
Showing 28 changed files with 198 additions and 742 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -120,14 +120,14 @@
"http-browserify": "^1.7.0",
"https-browserify": "^1.0.0",
"husky": "^8.0.3",
"jest": "^28.1.3",
"jest": "^29.7.0",
"lerna": "^6.6.2",
"npm-auth-to-token": "^1.0.0",
"prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.20",
"process": "^0.11.10",
"solc": "^0.8.15",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"ts-loader": "^9.3.1",
"ts-node": "^10.9.1",
"typedoc": "^0.25.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-core/package.json
Expand Up @@ -63,11 +63,11 @@
"eslint-config-base-web3": "0.1.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-extended": "^3.0.1",
"jest-when": "^3.5.1",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
}
}
@@ -1,9 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Web3Context getContextObject should return correct context object 1`] = `
Object {
{
"accountProvider": undefined,
"config": Object {
"config": {
"blockHeaderTimeout": 10,
"contractDataInputFill": "data",
"defaultAccount": undefined,
Expand All @@ -14,7 +14,7 @@ Object {
"defaultMaxPriorityFeePerGas": "0x9502f900",
"defaultNetworkId": undefined,
"defaultTransactionType": "0x2",
"enableExperimentalFeatures": Object {
"enableExperimentalFeatures": {
"useRpcCallSpecification": false,
"useSubscriptionWhenCheckingBlockTimeout": false,
},
Expand All @@ -34,14 +34,14 @@ Object {
"clientUrl": "http://test/abc",
"httpProviderOptions": undefined,
},
"providers": Object {
"providers": {
"HttpProvider": [Function],
"WebsocketProvider": [Function],
},
"registeredSubscriptions": Object {},
"registeredSubscriptions": {},
"requestManager": Web3RequestManager {
"_emitter": EventEmitter {
"_events": Object {
"_events": {
"BEFORE_PROVIDER_CHANGE": [Function],
"PROVIDER_CHANGED": [Function],
},
Expand All @@ -57,10 +57,10 @@ Object {
},
"subscriptionManager": Web3SubscriptionManager {
"_subscriptions": Map {},
"registeredSubscriptions": Object {},
"registeredSubscriptions": {},
"requestManager": Web3RequestManager {
"_emitter": EventEmitter {
"_events": Object {
"_events": {
"BEFORE_PROVIDER_CHANGE": [Function],
"PROVIDER_CHANGED": [Function],
},
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-errors/package.json
Expand Up @@ -51,10 +51,10 @@
"eslint-config-base-web3": "0.1.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-extended": "^3.0.1",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"ts-jest": "^29.1.1",
"typescript": "^4.7.4"
}
}

2 comments on commit 1eb07d1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1eb07d1 Previous: 6c075db Ratio
processingTx 9450 ops/sec (±3.81%) 9301 ops/sec (±4.81%) 0.98
processingContractDeploy 41004 ops/sec (±7.54%) 39129 ops/sec (±7.62%) 0.95
processingContractMethodSend 18980 ops/sec (±8.42%) 19443 ops/sec (±5.19%) 1.02
processingContractMethodCall 40437 ops/sec (±5.78%) 38971 ops/sec (±6.34%) 0.96
abiEncode 43826 ops/sec (±7.88%) 44252 ops/sec (±6.92%) 1.01
abiDecode 32745 ops/sec (±5.50%) 30419 ops/sec (±8.89%) 0.93
sign 1676 ops/sec (±0.92%) 1656 ops/sec (±4.08%) 0.99
verify 383 ops/sec (±0.52%) 373 ops/sec (±0.78%) 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 1eb07d1 Previous: 6c075db Ratio
processingTx 9389 ops/sec (±4.11%) 9301 ops/sec (±4.81%) 0.99
processingContractDeploy 39156 ops/sec (±8.47%) 39129 ops/sec (±7.62%) 1.00
processingContractMethodSend 19243 ops/sec (±6.91%) 19443 ops/sec (±5.19%) 1.01
processingContractMethodCall 38916 ops/sec (±5.97%) 38971 ops/sec (±6.34%) 1.00
abiEncode 44954 ops/sec (±6.40%) 44252 ops/sec (±6.92%) 0.98
abiDecode 30429 ops/sec (±7.36%) 30419 ops/sec (±8.89%) 1.00
sign 1657 ops/sec (±0.94%) 1656 ops/sec (±4.08%) 1.00
verify 370 ops/sec (±2.83%) 373 ops/sec (±0.78%) 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.