Skip to content

Commit 46dccc8

Browse files
dependabot[bot]Copilotkhanhtc1202
authored
build(deps-dev): bump jest and @types/jest in /web (#7368)
* build(deps-dev): bump jest and @types/jest in /web Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) and [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest). These dependencies needed to be updated together. Updates `jest` from 29.5.0 to 30.5.2 - [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.5.2/packages/jest) Updates `@types/jest` from 26.0.23 to 30.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-version: 30.0.0 dependency-type: direct:development update-type: version-update:semver-major - dependency-name: jest dependency-version: 30.5.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix Jest 30 web test failures Co-authored-by: khanhtc1202 <32532742+khanhtc1202@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: khanhtc1202 <32532742+khanhtc1202@users.noreply.github.com>
1 parent c007af0 commit 46dccc8

4 files changed

Lines changed: 1294 additions & 903 deletions

File tree

‎web/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@types/echarts": "^5.0.0",
2828
"@types/faker": "^5.1.6",
2929
"@types/google-protobuf": "^3.15.6",
30-
"@types/jest": "^26.0.23",
30+
"@types/jest": "^30.0.0",
3131
"@types/loadable__component": "^5.13.10",
3232
"@types/react": "^17.0.3",
3333
"@types/react-dom": "^17.0.3",
@@ -47,7 +47,7 @@
4747
"faker": "^5.3.1",
4848
"fork-ts-checker-webpack-plugin": "^9.1.0",
4949
"html-webpack-plugin": "^5.6.8",
50-
"jest": "^29.5.0",
50+
"jest": "^30.5.2",
5151
"jest-environment-jsdom": "^29.5.0",
5252
"msw": "^0.21.2",
5353
"prettier": "^2.0.5",

‎web/src/hooks/use-interval.test.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test("should not called callback if passed null to delay", () => {
2020

2121
jest.runAllTimers();
2222

23-
expect(callback).not.toBeCalled();
23+
expect(callback).not.toHaveBeenCalled();
2424
});
2525

2626
it("should call callback with passed delay", () => {
@@ -30,7 +30,7 @@ it("should call callback with passed delay", () => {
3030

3131
jest.advanceTimersByTime(99);
3232

33-
expect(callback).not.toBeCalled();
33+
expect(callback).not.toHaveBeenCalled();
3434

3535
jest.advanceTimersByTime(100);
3636

@@ -44,7 +44,7 @@ it("should call callback with passed delay", () => {
4444

4545
jest.advanceTimersByTime(99);
4646

47-
expect(callback).not.toBeCalled();
47+
expect(callback).not.toHaveBeenCalled();
4848

4949
jest.advanceTimersByTime(100);
5050

@@ -56,13 +56,13 @@ it("should clear interval on unmount", () => {
5656

5757
const { unmount } = renderHook(() => useInterval(callback, 100));
5858

59-
expect(callback).not.toBeCalled();
59+
expect(callback).not.toHaveBeenCalled();
6060

6161
unmount();
6262

6363
jest.runAllTimers();
6464

65-
expect(callback).not.toBeCalled();
65+
expect(callback).not.toHaveBeenCalled();
6666
});
6767

6868
it("should update interval if updated delay value", () => {

‎web/src/utils/__snapshots__/parse-log.test.ts.snap‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`multi lines contained in a single log block 1`] = `
44
[

0 commit comments

Comments
 (0)