From c04919e430b788a994c2927f0560eca492165770 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:05:16 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump jest-extended from 3.2.4 to 4.0.2 Bumps [jest-extended](https://github.com/jest-community/jest-extended) from 3.2.4 to 4.0.2. - [Release notes](https://github.com/jest-community/jest-extended/releases) - [Changelog](https://github.com/jest-community/jest-extended/blob/main/CHANGELOG.md) - [Commits](https://github.com/jest-community/jest-extended/compare/v3.2.4...v4.0.2) --- updated-dependencies: - dependency-name: jest-extended dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package-lock.json | 7 ++++--- src/messaging/js/composeui-messaging-client/package.json | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9c84bc111..d2f4ffeea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13764,9 +13764,10 @@ } }, "node_modules/jest-extended": { - "version": "3.2.4", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/jest-extended/-/jest-extended-4.0.2.tgz", + "integrity": "sha512-FH7aaPgtGYHc9mRjriS0ZEHYM5/W69tLrFTIdzm+yJgeoCmmrSB/luSfMSqWP9O29QWHPEmJ4qmU6EwsZideog==", "dev": true, - "license": "MIT", "dependencies": { "jest-diff": "^29.0.0", "jest-get-type": "^29.0.0" @@ -24216,7 +24217,7 @@ "expect": "^29.4.1", "glob": "^10.3.10", "jest": "^29.4.2", - "jest-extended": "^3.2.3", + "jest-extended": "^4.0.2", "rimraf": "^4.4.0", "rollup": "^3.17.2", "rollup-plugin-dts": "^5.2.0", diff --git a/src/messaging/js/composeui-messaging-client/package.json b/src/messaging/js/composeui-messaging-client/package.json index cf2f53368..dd7e0c849 100644 --- a/src/messaging/js/composeui-messaging-client/package.json +++ b/src/messaging/js/composeui-messaging-client/package.json @@ -26,7 +26,7 @@ "expect": "^29.4.1", "glob": "^10.3.10", "jest": "^29.4.2", - "jest-extended": "^3.2.3", + "jest-extended": "^4.0.2", "rimraf": "^4.4.0", "rollup": "^3.17.2", "rollup-plugin-dts": "^5.2.0", From 681a54f55180bbc58f38f5120c97f00d054ef347 Mon Sep 17 00:00:00 2001 From: kruplm <73655443+kruplm@users.noreply.github.com> Date: Tue, 17 Oct 2023 18:16:09 +0200 Subject: [PATCH 2/2] chore(message-router/js): fix tests --- .../src/client/MessageRouterClient.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/messaging/js/composeui-messaging-client/src/client/MessageRouterClient.spec.ts b/src/messaging/js/composeui-messaging-client/src/client/MessageRouterClient.spec.ts index f1c87641f..d18553545 100644 --- a/src/messaging/js/composeui-messaging-client/src/client/MessageRouterClient.spec.ts +++ b/src/messaging/js/composeui-messaging-client/src/client/MessageRouterClient.spec.ts @@ -627,7 +627,7 @@ describe("MessageRouterClient", () => { connection.raiseClose(); await new Promise(process.nextTick); - expect(subscriber.error).toHaveBeenCalledOnceWith(expect.any(Error)); + expect(subscriber.error).toHaveBeenCalledExactlyOnceWith(expect.any(Error)); }); it("fails pending requests", async () => { @@ -657,7 +657,7 @@ describe("MessageRouterClient", () => { connection.raiseError(err); await new Promise(process.nextTick); - expect(subscriber.error).toHaveBeenCalledOnceWith(err); + expect(subscriber.error).toHaveBeenCalledExactlyOnceWith(err); }); it("fails pending requests", async () => {