Skip to content

Commit dcddc81

Browse files
authored
chore: Bump playwright and MSW to see if it affects safari flakes (#2538)
bump playwright and msw to see if it affects safari flakes
1 parent 6f83d41 commit dcddc81

File tree

3 files changed

+82
-100
lines changed

3 files changed

+82
-100
lines changed

mockServiceWorker.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* - Please do NOT serve this file on production.
99
*/
1010

11-
const PACKAGE_VERSION = '2.4.7'
12-
const INTEGRITY_CHECKSUM = '26357c79639bfa20d64c0efca2a87423'
11+
const PACKAGE_VERSION = '2.6.2'
12+
const INTEGRITY_CHECKSUM = '07a8241b182f8a246a7cd39894799a9e'
1313
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1414
const activeClientIds = new Set()
1515

@@ -62,7 +62,12 @@ self.addEventListener('message', async function (event) {
6262

6363
sendToClient(client, {
6464
type: 'MOCKING_ENABLED',
65-
payload: true,
65+
payload: {
66+
client: {
67+
id: client.id,
68+
frameType: client.frameType,
69+
},
70+
},
6671
})
6772
break
6873
}
@@ -155,6 +160,10 @@ async function handleRequest(event, requestId) {
155160
async function resolveMainClient(event) {
156161
const client = await self.clients.get(event.clientId)
157162

163+
if (activeClientIds.has(event.clientId)) {
164+
return client
165+
}
166+
158167
if (client?.frameType === 'top-level') {
159168
return client
160169
}

package-lock.json

Lines changed: 67 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@
7878
"devDependencies": {
7979
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
8080
"@ladle/react": "^4.1.0",
81-
"@mswjs/http-middleware": "^0.10.1",
81+
"@mswjs/http-middleware": "^0.10.2",
8282
"@oxide/openapi-gen-ts": "~0.5.0",
83-
"@playwright/test": "^1.47.0",
83+
"@playwright/test": "^1.48.2",
8484
"@testing-library/dom": "^10.4.0",
8585
"@testing-library/jest-dom": "^6.5.0",
8686
"@testing-library/react": "^16.0.1",
@@ -111,7 +111,7 @@
111111
"ip-num": "^1.5.1",
112112
"jsdom": "^25.0.0",
113113
"lint-staged": "^15.2.10",
114-
"msw": "^2.4.5",
114+
"msw": "^2.6.2",
115115
"patch-package": "^8.0.0",
116116
"postcss": "^8.4.35",
117117
"postcss-import": "^16.1.0",

0 commit comments

Comments
 (0)