Skip to content

chore: Bump jest to v30 #3161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,995 changes: 1,274 additions & 721 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
"@stylistic/eslint-plugin": "^4.4.1",
"@tsconfig/node20": "^20.1.5",
"@types/eslint__js": "^9.14.0",
"@types/jest": "^29.5.14",
"@types/jest": "^30.0.0",
"@types/node": "^20.14.8",
"cli-table": "^0.3.6",
"eslint": "^9.14.0",
"eslint-config-streamr-ts": "^7.0.0",
"eslint-import-resolver-typescript": "^4.4.3",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.13.0",
"eslint-plugin-jest": "^29.0.1",
"eslint-plugin-promise": "^7.2.1",
"globals": "^16.2.0",
"jest": "^29.7.0",
"jest": "^30.0.3",
"jest-extended": "^6.0.0",
"jest-mock-extended": "^3.0.5",
"jest-mock-extended": "^4.0.0",
"lerna": "^8.2.2",
"semver": "^7.7.2",
"ts-jest": "^29.3.4",
"ts-jest": "^29.4.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.33.1",
"yarn": "^1.22.22",
Expand Down
8 changes: 4 additions & 4 deletions packages/browser-test-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"license": "Apache-2.0",
"devDependencies": {
"@electron/rebuild": "^4.0.1",
"@jest/fake-timers": "^29.6.2",
"@jest/fake-timers": "^30.0.2",
"buffer": "^6.0.3",
"electron": "^34.0.0",
"expect": "^29.6.2",
"jest-matcher-utils": "^29.7.0",
"jest-mock": "^29.6.3",
"expect": "^30.0.2",
"jest-matcher-utils": "^30.0.3",
"jest-mock": "^30.0.2",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.1.1",
"karma-electron": "^7.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/dht/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@types/websocket": "^1.0.10",
"@types/ws": "^8.18.1",
"jest-leak-detector": "^27.3.1",
"jest-matcher-utils": "^29.7.0",
"jest-matcher-utils": "^30.0.3",
"ts-essentials": "^10.1.0",
"ts-node": "^10.9.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/plugins/storage/Bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Bucket {
}

if (keepAliveSeconds <= 0) {
throw new Error('keepAliveSeconds must be > 0')
throw new TypeError('keepAliveSeconds must be > 0')
}

this.id = id
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@babel/plugin-transform-runtime": "^7.27.4",
"@babel/preset-env": "^7.27.2",
"@babel/preset-typescript": "^7.27.1",
"@jest/globals": "^29.7.0",
"@jest/globals": "^30.0.3",
"@streamr/test-utils": "103.0.0",
"@types/heap": "^0.2.34",
"@types/lodash": "^4.17.17",
Expand All @@ -76,7 +76,7 @@
"express": "^5.1.0",
"git-revision-webpack-plugin": "^5.0.0",
"jest-leak-detector": "^27.3.1",
"jest-matcher-utils": "^29.7.0",
"jest-matcher-utils": "^30.0.3",
"lodash-webpack-plugin": "^0.11.6",
"nightwatch": "^3.12.2",
"node-polyfill-webpack-plugin": "^4.1.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/sdk/src/utils/Pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,8 @@ export class Pipeline<InType, OutType = InType> implements IPipeline<InType, Out

return this
}

async [Symbol.asyncDispose](): Promise<void> {
await this.cleanup()
}
}
5 changes: 5 additions & 0 deletions packages/sdk/src/utils/PushBuffer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ export class PushBuffer<T> implements IPushBuffer<T> {

return this
}

// eslint-disable-next-line class-methods-use-this
async [Symbol.asyncDispose](): Promise<void> {
this.end()
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"cors": "^2.8.5",
"ethers": "^6.13.0",
"express": "^5.1.0",
"jest": "^29.7.0",
"jest-matcher-utils": "^29.7.0",
"jest": "^30.0.3",
"jest-matcher-utils": "^30.0.3",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/trackerless-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@streamr/test-utils": "103.0.0",
"@types/lodash": "^4.17.17",
"@types/yallist": "^4.0.1",
"expect": "^29.6.2",
"expect": "^30.0.2",
"ts-node": "^10.9.2"
}
}
Loading