Skip to content

Commit

Permalink
Merge pull request #919 from serlo/dependabot/npm_and_yarn/msw-2.6.4
Browse files Browse the repository at this point in the history
chore(msw): upgrade to v2.6.4 and fix test
  • Loading branch information
hugotiburtino authored Nov 14, 2024
2 parents 038dfce + c294787 commit 30ddd1e
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 112 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/msw-npm-2.4.3-d357f75dd0-bfbc9b5691.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions __tests__/frontend-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test('reports to sentry when frontend responded with redirect', async () => {
const env = localTestEnvironment()
const redirectResponse = await env.fetch({
subdomain: 'en',
pathname: '/math',
pathname: '/api/.ory/login',
})

expect(redirectResponse.status).toEqual(302)
Expand All @@ -68,7 +68,7 @@ test('reports to sentry when frontend responded with redirect', async () => {
context: {
backendUrl: env.createUrl({
subdomain: 'frontend',
pathname: '/en/math',
pathname: '/api/.ory/login',
}),
location: 'https://frontend.serlo.org/',
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"eslint-plugin-react": "^7.37.2",
"globals": "^15.12.0",
"jest": "^29.7.0",
"msw": "^2.4.3",
"msw": "^2.6.4",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"prettier-plugin-packagejson": "^2.5.3",
Expand Down
191 changes: 82 additions & 109 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -425,12 +425,12 @@ __metadata:
languageName: node
linkType: hard

"@bundled-es-modules/cookie@npm:^2.0.0":
version: 2.0.0
resolution: "@bundled-es-modules/cookie@npm:2.0.0"
"@bundled-es-modules/cookie@npm:^2.0.1":
version: 2.0.1
resolution: "@bundled-es-modules/cookie@npm:2.0.1"
dependencies:
cookie: ^0.5.0
checksum: 53114eabbedda20ba6c63f45dcea35c568616d22adf5d1882cef9761f65ae636bf47e0c66325572cc8e3a335e0257caf5f76ff1287990d9e9265be7bc9767a87
cookie: ^0.7.2
checksum: 4f210f9316a612f03a46c58f0e3de14b2598f36905433b5ac91e305a4185bd3cb0b141622fa54cff2fce18adbac0b5a8df67dca1874aabd81b7a631fc826e116
languageName: node
linkType: hard

Expand Down Expand Up @@ -845,42 +845,48 @@ __metadata:
languageName: node
linkType: hard

"@inquirer/confirm@npm:^3.0.0":
version: 3.0.0
resolution: "@inquirer/confirm@npm:3.0.0"
"@inquirer/confirm@npm:^5.0.0":
version: 5.0.2
resolution: "@inquirer/confirm@npm:5.0.2"
dependencies:
"@inquirer/core": ^7.0.0
"@inquirer/type": ^1.2.0
checksum: ed16dc0e5b22115474853ca57dbe3dacdcd15bcb37cc50020e8e76ff8d0875d62d8b63b93b3092c653faeb6c83a139eac997ff05638b0f1f78ae919f29ee29d4
"@inquirer/core": ^10.1.0
"@inquirer/type": ^3.0.1
peerDependencies:
"@types/node": ">=18"
checksum: 4e775b80b689adeb0b2852ed79b368ef23a82fe3d5f580a562f4af7cdf002a19e0ec1b3b95acc6d49427a72c0fcb5b6548e0cdcafe2f0d3f3d6a923e04aabd0c
languageName: node
linkType: hard

"@inquirer/core@npm:^7.0.0":
version: 7.0.0
resolution: "@inquirer/core@npm:7.0.0"
"@inquirer/core@npm:^10.1.0":
version: 10.1.0
resolution: "@inquirer/core@npm:10.1.0"
dependencies:
"@inquirer/type": ^1.2.0
"@types/mute-stream": ^0.0.4
"@types/node": ^20.11.16
"@types/wrap-ansi": ^3.0.0
"@inquirer/figures": ^1.0.8
"@inquirer/type": ^3.0.1
ansi-escapes: ^4.3.2
chalk: ^4.1.2
cli-spinners: ^2.9.2
cli-width: ^4.1.0
figures: ^3.2.0
mute-stream: ^1.0.0
run-async: ^3.0.0
mute-stream: ^2.0.0
signal-exit: ^4.1.0
strip-ansi: ^6.0.1
wrap-ansi: ^6.2.0
checksum: 9496406e24fa68f877b4715ad0c1b8465e558bf0e669dac6a2bb55e97c4d044edd99a864cb7bf1e7db8409f8057b33edd1fe154009f85aea8a7f739837d748c9
yoctocolors-cjs: ^2.1.2
checksum: c52be9ef04497a2b82ed6b1258ebd24ad0950b4b83a96e6fbde1a801eeced4e4b32ed5b2217eac98e504cc1d16ddc8d9d39243c96bdb5390ff13629b28c96591
languageName: node
linkType: hard

"@inquirer/type@npm:^1.2.0":
version: 1.2.0
resolution: "@inquirer/type@npm:1.2.0"
checksum: 50be288696a55cf860cee8aef7e10751b3d28694f1f6f5fc9c085bb3c45aa77f43961d40626d48f16a993f16f12a83b4282b16845a173fb1791ddb79bb1f93e8
"@inquirer/figures@npm:^1.0.8":
version: 1.0.8
resolution: "@inquirer/figures@npm:1.0.8"
checksum: 24c5c70f49a5f0e9d38f5552fb6936c258d2fc545f6a4944b17ba357c9ca4a729e8cffd77666971554ebc2a57948cfe5003331271a259c406b3f2de0e9c559b7
languageName: node
linkType: hard

"@inquirer/type@npm:^3.0.1":
version: 3.0.1
resolution: "@inquirer/type@npm:3.0.1"
peerDependencies:
"@types/node": ">=18"
checksum: af412f1e7541d43554b02199ae71a2039a1bff5dc51ceefd87de9ece55b199682733b28810fb4b6cb3ed4a159af4cc4a26d4bb29c58dd127e7d9dbda0797d8e7
languageName: node
linkType: hard

Expand Down Expand Up @@ -1214,17 +1220,17 @@ __metadata:
languageName: node
linkType: hard

"@mswjs/interceptors@npm:^0.29.0":
version: 0.29.1
resolution: "@mswjs/interceptors@npm:0.29.1"
"@mswjs/interceptors@npm:^0.36.5":
version: 0.36.10
resolution: "@mswjs/interceptors@npm:0.36.10"
dependencies:
"@open-draft/deferred-promise": ^2.2.0
"@open-draft/logger": ^0.3.0
"@open-draft/until": ^2.0.0
is-node-process: ^1.2.0
outvariant: ^1.2.1
outvariant: ^1.4.3
strict-event-emitter: ^0.5.1
checksum: c217f922c68024f6a8b526fb7df00bbfccb71e432bfb270322976dd40a9d312698e40bfd105b74df7aeb5a46276531a56ca5b8e3e9b0112f1577eb0d8d289e1f
checksum: e4d22f66782c911836c2b7370b8782ad2466d7f781e96703727b736caede29cc80f31cfbdcb5c4f44faf8737d321db1cbd5367dbd179cd213852a27f586f3cc9
languageName: node
linkType: hard

Expand Down Expand Up @@ -1370,7 +1376,7 @@ __metadata:
io-ts: ^2.2.21
jest: ^29.7.0
jose: ^5.9.6
msw: ^2.4.3
msw: ^2.6.4
npm-run-all: ^4.1.5
prettier: ^3.3.3
prettier-plugin-packagejson: ^2.5.3
Expand Down Expand Up @@ -1559,31 +1565,13 @@ __metadata:
languageName: node
linkType: hard

"@types/mute-stream@npm:^0.0.4":
version: 0.0.4
resolution: "@types/mute-stream@npm:0.0.4"
dependencies:
"@types/node": "*"
checksum: af8d83ad7b68ea05d9357985daf81b6c9b73af4feacb2f5c2693c7fd3e13e5135ef1bd083ce8d5bdc8e97acd28563b61bb32dec4e4508a8067fcd31b8a098632
languageName: node
linkType: hard

"@types/node@npm:*":
version: 20.4.2
resolution: "@types/node@npm:20.4.2"
checksum: 99e544ea7560d51f01f95627fc40394c24a13da8f041121a0da13e4ef0a2aa332932eaf9a5e8d0e30d1c07106e96a183be392cbba62e8cf0bf6a085d5c0f4149
languageName: node
linkType: hard

"@types/node@npm:^20.11.16":
version: 20.11.17
resolution: "@types/node@npm:20.11.17"
dependencies:
undici-types: ~5.26.4
checksum: 59c0dde187120adc97da30063c86511664b24b50fe777abfe1f557c217d0a0b84a68aaab5ef8ac44f5c2986b3f9cd605a15fa6e4f31195e594da96bbe9617c20
languageName: node
linkType: hard

"@types/parse-json@npm:^4.0.0":
version: 4.0.0
resolution: "@types/parse-json@npm:4.0.0"
Expand Down Expand Up @@ -1612,13 +1600,6 @@ __metadata:
languageName: node
linkType: hard

"@types/wrap-ansi@npm:^3.0.0":
version: 3.0.0
resolution: "@types/wrap-ansi@npm:3.0.0"
checksum: 492f0610093b5802f45ca292777679bb9b381f1f32ae939956dd9e00bf81dba7cc99979687620a2817d9a7d8b59928207698166c47a0861c6a2e5c30d4aaf1e9
languageName: node
linkType: hard

"@types/yargs-parser@npm:*":
version: 21.0.0
resolution: "@types/yargs-parser@npm:21.0.0"
Expand Down Expand Up @@ -2649,13 +2630,6 @@ __metadata:
languageName: node
linkType: hard

"cli-spinners@npm:^2.9.2":
version: 2.9.2
resolution: "cli-spinners@npm:2.9.2"
checksum: 1bd588289b28432e4676cb5d40505cfe3e53f2e4e10fbe05c8a710a154d6fe0ce7836844b00d6858f740f2ffe67cdc36e0fce9c7b6a8430e80e6388d5aa4956c
languageName: node
linkType: hard

"cli-width@npm:^4.1.0":
version: 4.1.0
resolution: "cli-width@npm:4.1.0"
Expand Down Expand Up @@ -2775,6 +2749,13 @@ __metadata:
languageName: node
linkType: hard

"cookie@npm:^0.7.2":
version: 0.7.2
resolution: "cookie@npm:0.7.2"
checksum: 9bf8555e33530affd571ea37b615ccad9b9a34febbf2c950c86787088eb00a8973690833b0f8ebd6b69b753c62669ea60cec89178c1fb007bf0749abed74f93e
languageName: node
linkType: hard

"cosmiconfig@npm:^7.1.0":
version: 7.1.0
resolution: "cosmiconfig@npm:7.1.0"
Expand Down Expand Up @@ -3895,15 +3876,6 @@ __metadata:
languageName: node
linkType: hard

"figures@npm:^3.2.0":
version: 3.2.0
resolution: "figures@npm:3.2.0"
dependencies:
escape-string-regexp: ^1.0.5
checksum: 85a6ad29e9aca80b49b817e7c89ecc4716ff14e3779d9835af554db91bac41c0f289c418923519392a1e582b4d10482ad282021330cd045bb7b80c84152f2a2b
languageName: node
linkType: hard

"file-entry-cache@npm:^8.0.0":
version: 8.0.0
resolution: "file-entry-cache@npm:8.0.0"
Expand Down Expand Up @@ -6124,26 +6096,27 @@ __metadata:
languageName: node
linkType: hard

"msw@npm:^2.4.3":
version: 2.4.3
resolution: "msw@npm:2.4.3"
"msw@npm:^2.6.4":
version: 2.6.4
resolution: "msw@npm:2.6.4"
dependencies:
"@bundled-es-modules/cookie": ^2.0.0
"@bundled-es-modules/cookie": ^2.0.1
"@bundled-es-modules/statuses": ^1.0.1
"@bundled-es-modules/tough-cookie": ^0.1.6
"@inquirer/confirm": ^3.0.0
"@mswjs/interceptors": ^0.29.0
"@inquirer/confirm": ^5.0.0
"@mswjs/interceptors": ^0.36.5
"@open-draft/deferred-promise": ^2.2.0
"@open-draft/until": ^2.1.0
"@types/cookie": ^0.6.0
"@types/statuses": ^2.0.4
chalk: ^4.1.2
graphql: ^16.8.1
headers-polyfill: ^4.0.2
is-node-process: ^1.2.0
outvariant: ^1.4.2
path-to-regexp: ^6.2.0
outvariant: ^1.4.3
path-to-regexp: ^6.3.0
strict-event-emitter: ^0.5.1
type-fest: ^4.9.0
type-fest: ^4.26.1
yargs: ^17.7.2
peerDependencies:
typescript: ">= 4.8.x"
Expand All @@ -6152,7 +6125,7 @@ __metadata:
optional: true
bin:
msw: cli/index.js
checksum: bfbc9b569111372ad98b3b16cebb77f1b9e83798a9cdb3ad4dcdeec9679235881d14d99bb687c09a9262872b3c603ff213e00e9511b57b6ac3b87f3fd5af8e39
checksum: b53b0a8746b735220b8111284c5345baadd78b858c1119472635b5b59323e8246891947aaac30c9f5eb4c1fa5ccd5f2b77baedce21db36619cd90ee4ab7011f0
languageName: node
linkType: hard

Expand All @@ -6178,10 +6151,10 @@ __metadata:
languageName: node
linkType: hard

"mute-stream@npm:^1.0.0":
version: 1.0.0
resolution: "mute-stream@npm:1.0.0"
checksum: 36fc968b0e9c9c63029d4f9dc63911950a3bdf55c9a87f58d3a266289b67180201cade911e7699f8b2fa596b34c9db43dad37649e3f7fdd13c3bb9edb0017ee7
"mute-stream@npm:^2.0.0":
version: 2.0.0
resolution: "mute-stream@npm:2.0.0"
checksum: d2e4fd2f5aa342b89b98134a8d899d8ef9b0a6d69274c4af9df46faa2d97aeb1f2ce83d867880d6de63643c52386579b99139801e24e7526c3b9b0a6d1e18d6c
languageName: node
linkType: hard

Expand Down Expand Up @@ -6472,13 +6445,20 @@ __metadata:
languageName: node
linkType: hard

"outvariant@npm:^1.2.1, outvariant@npm:^1.4.0, outvariant@npm:^1.4.2":
"outvariant@npm:^1.4.0":
version: 1.4.2
resolution: "outvariant@npm:1.4.2"
checksum: 5d9e2b3edb1cc8be9cbfc1c8c97e8b05137c4384bbfc56e0a465de26c5d2f023e65732ddcda9d46599b06d667fbc0de32c30d2ecd11f6f3f43bcf8ce0d320918
languageName: node
linkType: hard

"outvariant@npm:^1.4.3":
version: 1.4.3
resolution: "outvariant@npm:1.4.3"
checksum: 4a3551fb2b45309e585eebf88bad094dbe56ac6d3a28d59dd2e4050b431aa2beb6097a0763fce3cd82ca0f077026f380a9b60fffc306aaf430141421e7a7b6ed
languageName: node
linkType: hard

"p-limit@npm:^2.2.0":
version: 2.3.0
resolution: "p-limit@npm:2.3.0"
Expand Down Expand Up @@ -6614,7 +6594,7 @@ __metadata:
languageName: node
linkType: hard

"path-to-regexp@npm:^6.2.0, path-to-regexp@npm:^6.3.0":
"path-to-regexp@npm:^6.3.0":
version: 6.3.0
resolution: "path-to-regexp@npm:6.3.0"
checksum: eca78602e6434a1b6799d511d375ec044e8d7e28f5a48aa5c28d57d8152fb52f3fc62fb1cfc5dfa2198e1f041c2a82ed14043d75740a2fe60e91b5089a153250
Expand Down Expand Up @@ -7111,13 +7091,6 @@ __metadata:
languageName: node
linkType: hard

"run-async@npm:^3.0.0":
version: 3.0.0
resolution: "run-async@npm:3.0.0"
checksum: 280c03d5a88603f48103fc6fd69f07fb0c392a1e0d319c34ec96a2516030e07ba06f79231a563c78698b882649c2fc1fda601bc84705f57d50efcd1fa506cfc0
languageName: node
linkType: hard

"run-parallel@npm:^1.1.9":
version: 1.2.0
resolution: "run-parallel@npm:1.2.0"
Expand Down Expand Up @@ -8036,10 +8009,10 @@ __metadata:
languageName: node
linkType: hard

"type-fest@npm:^4.9.0":
version: 4.9.0
resolution: "type-fest@npm:4.9.0"
checksum: 73383de23237b399a70397a53101152548846d919aebcc7d8733000c6c354dc2632fe37c4a70b8571b79fdbfa099e2d8304c5ac56b3254780acff93e4c7a797f
"type-fest@npm:^4.26.1":
version: 4.26.1
resolution: "type-fest@npm:4.26.1"
checksum: 7188db3bca82afa62c69a8043fb7c5eb74e63c45e7e28efb986da1629d844286f7181bc5a8185f38989fffff0d6c96be66fd13529b01932d1b6ebe725181d31a
languageName: node
linkType: hard

Expand Down Expand Up @@ -8195,13 +8168,6 @@ __metadata:
languageName: node
linkType: hard

"undici-types@npm:~5.26.4":
version: 5.26.5
resolution: "undici-types@npm:5.26.5"
checksum: 3192ef6f3fd5df652f2dc1cd782b49d6ff14dc98e5dced492aa8a8c65425227da5da6aafe22523c67f035a272c599bb89cfe803c1db6311e44bed3042fc25487
languageName: node
linkType: hard

"undici@npm:^5.28.4":
version: 5.28.4
resolution: "undici@npm:5.28.4"
Expand Down Expand Up @@ -8636,6 +8602,13 @@ __metadata:
languageName: node
linkType: hard

"yoctocolors-cjs@npm:^2.1.2":
version: 2.1.2
resolution: "yoctocolors-cjs@npm:2.1.2"
checksum: 1c474d4b30a8c130e679279c5c2c33a0d48eba9684ffa0252cc64846c121fb56c3f25457fef902edbe1e2d7a7872130073a9fc8e795299d75e13fa3f5f548f1b
languageName: node
linkType: hard

"youch@npm:^3.2.2":
version: 3.2.3
resolution: "youch@npm:3.2.3"
Expand Down

0 comments on commit 30ddd1e

Please sign in to comment.