Skip to content

Commit 0fa078b

Browse files
committed
chore: add jest-fetch-mock
1 parent 3e559e9 commit 0fa078b

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

test/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77
"@types/jsdom": "^16.2.6",
88
"@types/node-fetch": "^2.5.8",
99
"@types/supertest": "^2.0.10",
10+
"@types/wtfnode": "^0.7.0",
1011
"argon2": "^0.28.0",
1112
"jest": "^26.6.3",
1213
"jsdom": "^16.4.0",
1314
"node-fetch": "^2.6.1",
1415
"playwright": "^1.12.1",
1516
"supertest": "^6.1.1",
1617
"ts-jest": "^26.4.4",
17-
"@types/wtfnode": "^0.7.0",
1818
"wtfnode": "^0.9.0"
1919
},
2020
"resolutions": {
2121
"argon2/@mapbox/node-pre-gyp/tar": "^6.1.3"
22+
},
23+
"dependencies": {
24+
"jest-fetch-mock": "^3.0.3"
2225
}
2326
}

test/yarn.lock

+21-1
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,13 @@ [email protected], core-util-is@~1.0.0:
17571757
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
17581758
integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=
17591759

1760+
cross-fetch@^3.0.4:
1761+
version "3.1.4"
1762+
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.4.tgz#9723f3a3a247bf8b89039f3a380a9244e8fa2f39"
1763+
integrity sha512-1eAtFWdIubi6T4XPy6ei9iUFoKpUkIF971QLN8lIvvvwueI65+Nw5haMNKUwfJxabqlIIDODJKGrQ66gxC0PbQ==
1764+
dependencies:
1765+
node-fetch "2.6.1"
1766+
17601767
cross-spawn@^6.0.0:
17611768
version "6.0.5"
17621769
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
@@ -2800,6 +2807,14 @@ jest-environment-node@^26.6.2:
28002807
jest-mock "^26.6.2"
28012808
jest-util "^26.6.2"
28022809

2810+
jest-fetch-mock@^3.0.3:
2811+
version "3.0.3"
2812+
resolved "https://registry.yarnpkg.com/jest-fetch-mock/-/jest-fetch-mock-3.0.3.tgz#31749c456ae27b8919d69824f1c2bd85fe0a1f3b"
2813+
integrity sha512-Ux1nWprtLrdrH4XwE7O7InRY6psIi3GOsqNESJgMJ+M5cv4A8Lh7SN9d2V2kKRZ8ebAfcd1LNyZguAOb6JiDqw==
2814+
dependencies:
2815+
cross-fetch "^3.0.4"
2816+
promise-polyfill "^8.1.3"
2817+
28032818
jest-get-type@^26.3.0:
28042819
version "26.3.0"
28052820
resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-26.3.0.tgz#e97dc3c3f53c2b406ca7afaed4493b1d099199e0"
@@ -3418,7 +3433,7 @@ node-addon-api@^3.0.2:
34183433
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"
34193434
integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==
34203435

3421-
node-fetch@^2.6.1:
3436+
node-fetch@2.6.1, node-fetch@^2.6.1:
34223437
version "2.6.1"
34233438
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.1.tgz#045bd323631f76ed2e2b55573394416b639a0052"
34243439
integrity sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==
@@ -3762,6 +3777,11 @@ progress@^2.0.3:
37623777
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
37633778
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
37643779

3780+
promise-polyfill@^8.1.3:
3781+
version "8.2.0"
3782+
resolved "https://registry.yarnpkg.com/promise-polyfill/-/promise-polyfill-8.2.0.tgz#367394726da7561457aba2133c9ceefbd6267da0"
3783+
integrity sha512-k/TC0mIcPVF6yHhUvwAp7cvL6I2fFV7TzF1DuGPI8mBh4QQazf36xCKEHKTZKRysEoTQoQdKyP25J8MPJp7j5g==
3784+
37653785
prompts@^2.0.1:
37663786
version "2.4.0"
37673787
resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.0.tgz#4aa5de0723a231d1ee9121c40fdf663df73f61d7"

0 commit comments

Comments
 (0)