Skip to content

Commit be4040d

Browse files
committed
support pw 1.51
1 parent fef54be commit be4040d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"prettier:w": "prettier --write --ignore-unknown .",
2525
"test": "npx playwright test",
2626
"test:d": "DEBUG=playwright-network-cache npm test",
27+
"pw": "npm i --no-save @playwright/test@$PW",
28+
"browsers": "npx cross-env PLAYWRIGHT_SKIP_BROWSER_GC=1 npx playwright install chromium",
2729
"example": "npx playwright test -c example",
2830
"example:debug": "DEBUG=playwright-network-cache npx playwright test -c example",
2931
"example:nocache": "rm -rf .network-cache && npx playwright test -c example",

src/CacheRouteHandler/SyntheticApiResponse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class SyntheticApiResponse extends PwApiResponse implements APIResponse {
1313
private info: ResponseInfo,
1414
private bodyBuffer: Buffer,
1515
) {
16-
super({}, { headers: [] });
16+
super({ _platform: {} }, { headers: [] });
1717
}
1818

1919
ok() {

0 commit comments

Comments
 (0)