Skip to content

Commit 1d471f6

Browse files
authored
chore(blob): Update packages related to browser tests (#880)
1 parent a8df1cf commit 1d471f6

File tree

7 files changed

+217
-145
lines changed

7 files changed

+217
-145
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ npm-debug.log
1010
.turbo
1111
.DS_Store
1212
.vscode
13+
.vercel
14+
.env*.local

pnpm-lock.yaml

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

test/next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"undici": "^6.20.1"
4040
},
4141
"devDependencies": {
42-
"@playwright/test": "^1.50.1",
42+
"@playwright/test": "^1.55.1",
4343
"@types/json-stable-stringify": "^1.2.0",
4444
"json-stable-stringify": "^1.2.1"
4545
}

test/next/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const config: PlaywrightTestConfig = {
2424
testDir: path.join(__dirname, 'test'),
2525
testMatch: process.env.PLAYWRIGHT_TEST_MATCH,
2626
// If a test fails, retry it additional 2 times
27-
retries: 2,
27+
retries: 5,
2828
// Artifacts folder where screenshots, videos, and traces are stored.
2929
outputDir: 'test-results/',
3030

test/next/src/app/vercel/blob/handle-blob-upload.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ export async function handleUploadHandler(
5959
}),
6060
};
6161
},
62-
// eslint-disable-next-line @typescript-eslint/require-await -- [@vercel/style-guide@5 migration]
63-
onUploadCompleted: async ({ blob, tokenPayload }) => {
64-
console.log('Upload completed', blob, tokenPayload);
65-
try {
66-
// await db.update({ avatar: blob.url, userId: tokenPayload.userId });
67-
} catch (error) {
68-
throw new Error('Could not update user');
69-
}
70-
},
7162
});
7263

7364
return NextResponse.json(jsonResponse);

test/next/src/pages/api/vercel/blob/pages/handle-blob-upload-serverless.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ export default async function handleBody(
3636
}),
3737
};
3838
},
39-
// eslint-disable-next-line @typescript-eslint/require-await -- [@vercel/style-guide@5 migration]
40-
onUploadCompleted: async ({ blob, tokenPayload }) => {
41-
console.log('Upload completed', blob, tokenPayload);
42-
try {
43-
// await db.update({ avatar: blob.url, userId: tokenPayload.userId });
44-
} catch (error) {
45-
throw new Error('Could not update user');
46-
}
47-
},
4839
});
4940

5041
response.json(jsonResponse);
81 Bytes
Loading

0 commit comments

Comments
 (0)