Skip to content

Commit

Permalink
Merge pull request #12317 from bbc/dependabot/npm_and_yarn/undici-7.2.3
Browse files Browse the repository at this point in the history
Bump undici from 6.21.0 to 7.2.3
  • Loading branch information
karinathomasbbc authored Jan 21, 2025
2 parents 676df57 + 387de4b commit b3c415c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 12 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"react-lazyload": "3.2.1",
"react-router-config": "5.1.1",
"react-router-dom": "5.3.4",
"undici": "6.21.0",
"undici": "7.2.3",
"url-parse": "1.5.10",
"uuid": "8.3.2",
"winston": "patch:[email protected]#./patches/winston-file-descriptor.patch"
Expand Down
13 changes: 7 additions & 6 deletions src/testHelpers/jest-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@ import fetch from 'jest-fetch-mock';
import path from 'path';
import { TextEncoder, TextDecoder } from 'util';
import { ReadableStream } from 'node:stream/web';
import { MessagePort } from 'node:worker_threads';

global.TextEncoder = TextEncoder;
global.TextDecoder = TextDecoder;
global.fetch = fetch;
global.AbortSignal = {
timeout: jest.fn(),
};
global.ReadableStream = ReadableStream;
global.MessagePort = MessagePort;

window.require = jest.fn();

Expand All @@ -29,12 +36,6 @@ window.matchMedia = jest.fn().mockImplementation(query => {
// Mock RequireJS globally and let individual tests mock it as needed
window.require = jest.fn();

global.fetch = fetch;
global.AbortSignal = {
timeout: jest.fn(),
};
global.ReadableStream = ReadableStream;

process.env.SIMORGH_PUBLIC_STATIC_ASSETS_ORIGIN = 'http://localhost:7080';
process.env.SIMORGH_PUBLIC_STATIC_ASSETS_PATH = '/';
process.env.SIMORGH_ASSETS_MANIFEST_PATH = path.resolve(
Expand Down
2 changes: 2 additions & 0 deletions ws-nextjs-app/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import '@testing-library/jest-dom';
import { TextEncoder, TextDecoder } from 'node:util';
import { ReadableStream } from 'node:stream/web';
import { MessagePort } from 'node:worker_threads';

Object.defineProperties(globalThis, {
TextDecoder: { value: TextDecoder },
TextEncoder: { value: TextEncoder },
ReadableStream: { value: ReadableStream },
MessagePort: { value: MessagePort },
});

global.console = {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17065,7 +17065,7 @@ __metadata:
ts-jest: "npm:29.2.5"
ts-loader: "npm:9.5.2"
typescript: "npm:5.7.3"
undici: "npm:6.21.0"
undici: "npm:7.2.3"
url-parse: "npm:1.5.10"
uuid: "npm:8.3.2"
wait-on: "npm:8.0.2"
Expand Down Expand Up @@ -18482,10 +18482,10 @@ __metadata:
languageName: node
linkType: hard

"undici@npm:6.21.0":
version: 6.21.0
resolution: "undici@npm:6.21.0"
checksum: 10/c8ff80dcadfcf613e7fe697c37519fca070fcf1cfccc69ffb6a7080a22e225eb79d232e9f70e32b099b3e67ac4216e8fd615e188cfb792e09df9233471ec17e0
"undici@npm:7.2.3":
version: 7.2.3
resolution: "undici@npm:7.2.3"
checksum: 10/92870d186682c19f4b9909e4b6229a88b4e73e6e12d7a3e151033cefb66579bdc1d36e46d97e386161ba0afcd84b718e917fca7b7f08d409d918689343034c09
languageName: node
linkType: hard

Expand Down

0 comments on commit b3c415c

Please sign in to comment.