Skip to content

Commit 2cde673

Browse files
kibanamachineThomas Watson
and
Thomas Watson
authoredAug 23, 2022
Bump undici sub-dependency from v5.5.1 to v5.8.2 (#138877) (#139299)
(cherry picked from commit 84e8e54) Co-authored-by: Thomas Watson <watson@elastic.co>
1 parent 367015c commit 2cde673

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed
 

‎packages/kbn-test/jest_integration_node/jest-preset.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88

99
const preset = require('../jest-preset');
1010

11+
const presetClone = { ...preset };
12+
13+
delete presetClone.testEnvironment; // simply redefining as `testEnvironment: 'node'` has some weird side-effects (https://github.com/elastic/kibana/pull/138877)
14+
1115
/** @typedef {import("@jest/types").Config.InitialOptions} JestConfig */
1216
/** @type {JestConfig} */
1317
module.exports = {
14-
...preset,
18+
...presetClone,
1519
testMatch: ['**/integration_tests**/*.test.{js,mjs,ts,tsx}'],
1620
testPathIgnorePatterns: preset.testPathIgnorePatterns.filter(
1721
(pattern) => !pattern.includes('integration_tests')
@@ -40,7 +44,6 @@ module.exports = {
4044
? [['json', { file: 'jest-integration.json' }]]
4145
: ['html', 'text'],
4246

43-
testEnvironment: 'node',
4447
snapshotSerializers: [],
4548
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
4649
haste: {

‎packages/kbn-test/jest_node/jest-preset.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88

99
const preset = require('../jest-preset');
1010

11+
const presetClone = { ...preset };
12+
13+
delete presetClone.testEnvironment; // simply redefining as `testEnvironment: 'node'` has some weird side-effects (https://github.com/elastic/kibana/pull/138877#issuecomment-1222366247)
14+
1115
module.exports = {
12-
...preset,
13-
testEnvironment: 'node',
16+
...presetClone,
1417
snapshotSerializers: [],
1518
setupFiles: ['<rootDir>/node_modules/@kbn/test/target_node/jest/setup/babel_polyfill.js'],
1619
haste: {

‎yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -28105,9 +28105,9 @@ undertaker@^1.2.1:
2810528105
undertaker-registry "^1.0.0"
2810628106

2810728107
undici@^5.1.1:
28108-
version "5.5.1"
28109-
resolved "https://registry.yarnpkg.com/undici/-/undici-5.5.1.tgz#baaf25844a99eaa0b22e1ef8d205bffe587c8f43"
28110-
integrity sha512-MEvryPLf18HvlCbLSzCW0U00IMftKGI5udnjrQbC5D4P0Hodwffhv+iGfWuJwg16Y/TK11ZFK8i+BPVW2z/eAw==
28108+
version "5.8.2"
28109+
resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.2.tgz#071fc8a6a5d24db0ad510ad442f607d9b09d5eec"
28110+
integrity sha512-3KLq3pXMS0Y4IELV045fTxqz04Nk9Ms7yfBBHum3yxsTR4XNn+ZCaUbf/mWitgYDAhsplQ0B1G4S5D345lMO3A==
2811128111

2811228112
unfetch@^4.2.0:
2811328113
version "4.2.0"

0 commit comments

Comments
 (0)
Please sign in to comment.