diff --git a/package-lock.json b/package-lock.json index 05f17228..2cbc1537 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "react-querybuilder": "^8.2.0", "reconnecting-websocket": "^4.4.0", "type-fest": "^4.41.0", - "uuid": "^11.1.0" + "uuid": "^13.0.0" }, "devDependencies": { "@babel/helper-builder-react-jsx": "^7.27.1", @@ -16883,16 +16883,16 @@ "license": "MIT" }, "node_modules/uuid": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz", - "integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz", + "integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==", "funding": [ "https://github.com/sponsors/broofa", "https://github.com/sponsors/ctavan" ], "license": "MIT", "bin": { - "uuid": "dist/esm/bin/uuid" + "uuid": "dist-node/bin/uuid" } }, "node_modules/v8-compile-cache-lib": { diff --git a/package.json b/package.json index 80a44b2f..ee3aef4d 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "react-querybuilder": "^8.2.0", "reconnecting-websocket": "^4.4.0", "type-fest": "^4.41.0", - "uuid": "^11.1.0" + "uuid": "^13.0.0" }, "peerDependencies": { "@emotion/react": "^11.14.0", diff --git a/src/components/notifications/test/NotificationsProvider.test.tsx b/src/components/notifications/test/NotificationsProvider.test.tsx index 8c15131f..1a7a8acd 100644 --- a/src/components/notifications/test/NotificationsProvider.test.tsx +++ b/src/components/notifications/test/NotificationsProvider.test.tsx @@ -12,6 +12,7 @@ import { NotificationsProvider } from '../NotificationsProvider'; import { useNotificationsListener } from '../hooks/useNotificationsListener'; jest.mock('reconnecting-websocket'); +jest.mock('uuid', () => ({ v4: () => '00000000-0000-0000-0000-000000000000' })); const MockedReconnectingWebSocket = ReconnectingWebSocket as jest.MockedClass; let container: Element;