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", 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 () => {