Skip to content

Commit 5d8ae09

Browse files
committed
devdeps(@types/jest): upgrade to version 29.5.14
1 parent d946c4a commit 5d8ae09

File tree

4 files changed

+79
-48
lines changed

4 files changed

+79
-48
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"@commitlint/cli": "17.8.1",
1212
"@commitlint/config-conventional": "17.8.1",
13-
"@types/jest": "^29.5.13",
13+
"@types/jest": "^29.5.14",
1414
"@types/node": "~16.11.7",
1515
"@typescript-eslint/eslint-plugin": "6.21.0",
1616
"@typescript-eslint/parser": "6.21.0",

packages/mongodb-memory-server-core/src/util/__tests__/MongoBinaryDownload.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ describe('MongoBinaryDownload', () => {
332332
jest.spyOn(mbd, 'getPath').mockResolvedValue(outPath);
333333

334334
// prepare the archive
335-
await new Promise((res, rej) => {
335+
await new Promise<void>((res, rej) => {
336336
const zipfile = new yazl.ZipFile();
337337
const writeStream = createWriteStream(zipPath);
338-
writeStream.once('close', res);
338+
writeStream.once('close', () => res());
339339
writeStream.once('error', rej);
340340
zipfile.outputStream.once('error', rej);
341341
zipfile.outputStream.pipe(writeStream);
@@ -382,11 +382,11 @@ describe('MongoBinaryDownload', () => {
382382
jest.spyOn(mbd, 'getPath').mockResolvedValue(outPath);
383383

384384
// prepare the archive
385-
await new Promise((res, rej) => {
385+
await new Promise<void>((res, rej) => {
386386
const tarPack = pack();
387387
const gzipStream = createGzip();
388388
const writeStream = createWriteStream(tarPath);
389-
writeStream.once('close', res);
389+
writeStream.once('close', () => res());
390390
writeStream.once('error', rej);
391391
gzipStream.once('error', rej);
392392
tarPack.once('error', rej);

packages/mongodb-memory-server-core/src/util/__tests__/utils.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ describe('utils', () => {
2525

2626
describe('pathExists', () => {
2727
it('should return true if there are stats', async () => {
28-
jest.spyOn(fspromises, 'stat').mockResolvedValueOnce(new Stats());
28+
jest.spyOn(fspromises, 'stat').mockResolvedValueOnce(
29+
// @ts-expect-error Mock value, though nodejs does not want it to be public anymore
30+
new Stats()
31+
);
2932
await expect(utils.pathExists('/some/path')).resolves.toEqual(true);
3033
});
3134

yarn.lock

Lines changed: 70 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@
1515
"@jridgewell/gen-mapping" "^0.3.0"
1616
"@jridgewell/trace-mapping" "^0.3.9"
1717

18-
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.22.13":
18+
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.22.13":
1919
version "7.22.13"
2020
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.22.13.tgz#e3c1c099402598483b7a8c46a721d1038803755e"
2121
integrity sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==
2222
dependencies:
2323
"@babel/highlight" "^7.22.13"
2424
chalk "^2.4.2"
2525

26+
"@babel/code-frame@^7.12.13":
27+
version "7.27.1"
28+
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.27.1.tgz#200f715e66d52a23b221a9435534a91cc13ad5be"
29+
integrity sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==
30+
dependencies:
31+
"@babel/helper-validator-identifier" "^7.27.1"
32+
js-tokens "^4.0.0"
33+
picocolors "^1.1.1"
34+
2635
"@babel/compat-data@^7.22.9":
2736
version "7.22.20"
2837
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.22.20.tgz#8df6e96661209623f1975d66c35ffca66f3306d0"
@@ -132,10 +141,10 @@
132141
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz#533f36457a25814cf1df6488523ad547d784a99f"
133142
integrity sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==
134143

135-
"@babel/helper-validator-identifier@^7.22.20":
136-
version "7.22.20"
137-
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz#c4ae002c61d2879e724581d96665583dbc1dc0e0"
138-
integrity sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==
144+
"@babel/helper-validator-identifier@^7.22.20", "@babel/helper-validator-identifier@^7.25.9", "@babel/helper-validator-identifier@^7.27.1":
145+
version "7.27.1"
146+
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"
147+
integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==
139148

140149
"@babel/helper-validator-option@^7.22.15":
141150
version "7.22.15"
@@ -152,13 +161,14 @@
152161
"@babel/types" "^7.23.0"
153162

154163
"@babel/highlight@^7.22.13":
155-
version "7.22.20"
156-
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.22.20.tgz#4ca92b71d80554b01427815e06f2df965b9c1f54"
157-
integrity sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==
164+
version "7.25.9"
165+
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.9.tgz#8141ce68fc73757946f983b343f1231f4691acc6"
166+
integrity sha512-llL88JShoCsth8fF8R4SJnIn+WLvR6ccFxu1H3FlMhDontdcmZWf2HgIZ7AIqV3Xcck1idlohrN4EUBQz6klbw==
158167
dependencies:
159-
"@babel/helper-validator-identifier" "^7.22.20"
168+
"@babel/helper-validator-identifier" "^7.25.9"
160169
chalk "^2.4.2"
161170
js-tokens "^4.0.0"
171+
picocolors "^1.0.0"
162172

163173
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.22.15", "@babel/parser@^7.23.0":
164174
version "7.23.0"
@@ -937,29 +947,34 @@
937947
dependencies:
938948
"@types/node" "*"
939949

940-
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1":
950+
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
951+
version "2.0.6"
952+
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7"
953+
integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==
954+
955+
"@types/istanbul-lib-coverage@^2.0.1":
941956
version "2.0.4"
942957
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44"
943958
integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==
944959

945960
"@types/istanbul-lib-report@*":
946-
version "3.0.1"
947-
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#412e0725ef41cde73bfa03e0e833eaff41e0fd63"
948-
integrity sha512-gPQuzaPR5h/djlAv2apEG1HVOyj1IUs7GpfMZixU0/0KXT3pm64ylHuMUI1/Akh+sq/iikxg6Z2j+fcMDXaaTQ==
961+
version "3.0.3"
962+
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf"
963+
integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==
949964
dependencies:
950965
"@types/istanbul-lib-coverage" "*"
951966

952967
"@types/istanbul-reports@^3.0.0":
953-
version "3.0.2"
954-
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.2.tgz#edc8e421991a3b4df875036d381fc0a5a982f549"
955-
integrity sha512-kv43F9eb3Lhj+lr/Hn6OcLCs/sSM8bt+fIaP11rCYngfV6NVjzWXJ17owQtDQTL9tQ8WSLUrGsSJ6rJz0F1w1A==
968+
version "3.0.4"
969+
resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54"
970+
integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==
956971
dependencies:
957972
"@types/istanbul-lib-report" "*"
958973

959-
"@types/jest@^29.5.13":
960-
version "29.5.13"
961-
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.13.tgz#8bc571659f401e6a719a7bf0dbcb8b78c71a8adc"
962-
integrity sha512-wd+MVEZCHt23V0/L642O5APvspWply/rGY5BcW4SUETo2UzPU3Z26qr8jC2qxpimI2jjx9h7+2cj2FwIr01bXg==
974+
"@types/jest@^29.5.14":
975+
version "29.5.14"
976+
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.14.tgz#2b910912fa1d6856cadcd0c1f95af7df1d6049e5"
977+
integrity sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==
963978
dependencies:
964979
expect "^29.0.0"
965980
pretty-format "^29.0.0"
@@ -987,11 +1002,11 @@
9871002
integrity sha512-xPSg0jm4mqgEkNhowKgZFBNtwoEwF6gJ4Dhww+GFpm3IgtNseHQZ5IqdNwnquZEoANxyDAKDRAdVo4Z72VvD/g==
9881003

9891004
"@types/node@*":
990-
version "20.14.8"
991-
resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.8.tgz#45c26a2a5de26c3534a9504530ddb3b27ce031ac"
992-
integrity sha512-DO+2/jZinXfROG7j7WKFn/3C6nFwxy2lLpgLjEXJz+0XKphZlTLJ14mo8Vfg8X5BWN6XjyESXq+LcYdT7tR3bA==
1005+
version "24.0.3"
1006+
resolved "https://registry.yarnpkg.com/@types/node/-/node-24.0.3.tgz#f935910f3eece3a3a2f8be86b96ba833dc286cab"
1007+
integrity sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==
9931008
dependencies:
994-
undici-types "~5.26.4"
1009+
undici-types "~7.8.0"
9951010

9961011
9971012
version "20.5.1"
@@ -1019,9 +1034,9 @@
10191034
integrity sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==
10201035

10211036
"@types/stack-utils@^2.0.0":
1022-
version "2.0.1"
1023-
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c"
1024-
integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==
1037+
version "2.0.3"
1038+
resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8"
1039+
integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==
10251040

10261041
"@types/tar-stream@^3.1.4":
10271042
version "3.1.4"
@@ -1048,14 +1063,14 @@
10481063
"@types/webidl-conversions" "*"
10491064

10501065
"@types/yargs-parser@*":
1051-
version "21.0.1"
1052-
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.1.tgz#07773d7160494d56aa882d7531aac7319ea67c3b"
1053-
integrity sha512-axdPBuLuEJt0c4yI5OZssC19K2Mq1uKdrfZBzuxLvaztgqUtFYZUNw7lETExPYJR9jdEoIg4mb7RQKRQzOkeGQ==
1066+
version "21.0.3"
1067+
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15"
1068+
integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==
10541069

10551070
"@types/yargs@^17.0.8":
1056-
version "17.0.26"
1057-
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.26.tgz#388e5002a8b284ad7b4599ba89920a6d74d8d79a"
1058-
integrity sha512-Y3vDy2X6zw/ZCumcwLpdhM5L7jmyGpmBCTYMHDLqT2IKVMYRRLdv6ZakA+wxhra6Z/3bwhNbNl9bDGXaFU+6rw==
1071+
version "17.0.33"
1072+
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d"
1073+
integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==
10591074
dependencies:
10601075
"@types/yargs-parser" "*"
10611076

@@ -1414,7 +1429,7 @@ brace-expansion@^2.0.1:
14141429
dependencies:
14151430
balanced-match "^1.0.0"
14161431

1417-
braces@^3.0.2:
1432+
braces@^3.0.2, braces@^3.0.3:
14181433
version "3.0.3"
14191434
resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789"
14201435
integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
@@ -3522,14 +3537,22 @@ micromark@^2.11.3, micromark@~2.11.0, micromark@~2.11.3:
35223537
debug "^4.0.0"
35233538
parse-entities "^2.0.0"
35243539

3525-
[email protected], micromatch@^4.0.4:
3540+
35263541
version "4.0.5"
35273542
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
35283543
integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
35293544
dependencies:
35303545
braces "^3.0.2"
35313546
picomatch "^2.3.1"
35323547

3548+
micromatch@^4.0.4:
3549+
version "4.0.8"
3550+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"
3551+
integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==
3552+
dependencies:
3553+
braces "^3.0.3"
3554+
picomatch "^2.3.1"
3555+
35333556
mimic-fn@^2.1.0:
35343557
version "2.1.0"
35353558
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b"
@@ -3835,6 +3858,11 @@ picocolors@^1.0.0:
38353858
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
38363859
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
38373860

3861+
picocolors@^1.1.1:
3862+
version "1.1.1"
3863+
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b"
3864+
integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==
3865+
38383866
picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1:
38393867
version "2.3.1"
38403868
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
@@ -3917,9 +3945,9 @@ quick-lru@^4.0.1:
39173945
integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==
39183946

39193947
react-is@^18.0.0:
3920-
version "18.2.0"
3921-
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b"
3922-
integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==
3948+
version "18.3.1"
3949+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e"
3950+
integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==
39233951

39243952
read-pkg-up@^7.0.1:
39253953
version "7.0.1"
@@ -4553,10 +4581,10 @@ underscore@^1.13.2:
45534581
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.6.tgz#04786a1f589dc6c09f761fc5f45b89e935136441"
45544582
integrity sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==
45554583

4556-
undici-types@~5.26.4:
4557-
version "5.26.5"
4558-
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
4559-
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
4584+
undici-types@~7.8.0:
4585+
version "7.8.0"
4586+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.8.0.tgz#de00b85b710c54122e44fbfd911f8d70174cd294"
4587+
integrity sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==
45604588

45614589
unified@^9.2.2:
45624590
version "9.2.2"

0 commit comments

Comments
 (0)