Skip to content

Commit a7d5c64

Browse files
Bump jest from 29.7.0 to 30.0.3 (#384)
* Bump jest from 29.7.0 to 30.0.3 Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.7.0 to 30.0.3. - [Release notes](https://github.com/jestjs/jest/releases) - [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jestjs/jest/commits/v30.0.3/packages/jest) --- updated-dependencies: - dependency-name: jest dependency-version: 30.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * rename toThrowError() to toThrow(). This alias has been removed from jest --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos (Goodwine) <[email protected]>
1 parent a91a57d commit a7d5c64

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/src/request-tracker.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ describe('request tracker', () => {
3636
});
3737

3838
it('errors if the request ID is invalid', () => {
39-
expect(() => tracker.add(-1, 'compileResponse')).toThrowError(
39+
expect(() => tracker.add(-1, 'compileResponse')).toThrow(
4040
'Invalid request ID -1.',
4141
);
4242
});
4343

4444
it('errors if the request ID overlaps that of an existing in-flight request', () => {
4545
tracker.add(0, 'compileResponse');
46-
expect(() => tracker.add(0, 'compileResponse')).toThrowError(
46+
expect(() => tracker.add(0, 'compileResponse')).toThrow(
4747
'Request ID 0 is already in use by an in-flight request.',
4848
);
4949
});
@@ -74,14 +74,14 @@ describe('request tracker', () => {
7474
});
7575

7676
it('errors if the response ID does not match any existing request IDs', () => {
77-
expect(() => tracker.resolve(0, 'compileResponse')).toThrowError(
77+
expect(() => tracker.resolve(0, 'compileResponse')).toThrow(
7878
'Response ID 0 does not match any pending requests.',
7979
);
8080
});
8181

8282
it('errors if the response type does not match what the request is expecting', () => {
8383
tracker.add(0, 'importResponse');
84-
expect(() => tracker.resolve(0, 'fileImportResponse')).toThrowError(
84+
expect(() => tracker.resolve(0, 'fileImportResponse')).toThrow(
8585
"Response with ID 0 does not match pending request's type. Expected " +
8686
'importResponse but received fileImportResponse.',
8787
);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"@bufbuild/protoc-gen-es": "^2.5.0",
7171
"@types/buffer-builder": "^0.2.0",
7272
"@types/google-protobuf": "^3.7.2",
73-
"@types/jest": "^29.4.0",
73+
"@types/jest": "^30.0.0",
7474
"@types/node": "^24.0.3",
7575
"@types/shelljs": "^0.8.8",
7676
"@types/supports-color": "^8.1.1",
@@ -79,7 +79,7 @@
7979
"@types/yargs": "^17.0.4",
8080
"extract-zip": "^2.0.1",
8181
"gts": "^6.0.2",
82-
"jest": "^29.4.1",
82+
"jest": "^30.0.3",
8383
"npm-run-all": "^4.1.5",
8484
"shelljs": "^0.10.0",
8585
"simple-git": "^3.15.1",

0 commit comments

Comments
 (0)