Skip to content

Commit fee8874

Browse files
committed
fix(ci): merge main and regenerate pnpm lockfile
2 parents 82e1c36 + 02548c6 commit fee8874

11 files changed

Lines changed: 449 additions & 74 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
- name: Run Tests
9494
shell: bash
9595
run: |
96-
if timeout 30s pnpm run test; then
96+
if timeout 30s pnpm vitest run --coverage; then
9797
echo "Tests completed within the 30-second limit."
9898
else
9999
status=$?

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"@typescript-eslint/eslint-plugin": "^8.59.1",
123123
"@typescript-eslint/parser": "^8.59.1",
124124
"@vitejs/plugin-react-swc": "^3.10.2",
125+
"@vitest/coverage-v8": "^2.1.9",
125126
"eslint": "^9",
126127
"eslint-config-next": "15.3.1",
127128
"eslint-config-prettier": "^8.10.2",

pnpm-lock.yaml

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

src/app/api/errors/report/route.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,20 @@ import { createLogger } from '@/lib/logging';
33

44
const logger = createLogger('errors.report');
55

6+
class ClientError extends Error {
7+
constructor(message: string, name: string = 'ClientError') {
8+
super(message);
9+
this.name = name;
10+
}
11+
}
12+
613
export async function POST(request: NextRequest): Promise<NextResponse> {
714
try {
815
const report = await request.json();
916

1017
// Build a real Error so normalizeError captures name + message + stack properly
1118
const clientError = report.errorData?.message
12-
? Object.assign(new Error(report.errorData.message), {
13-
name: report.errorData.type ?? 'ClientError',
14-
})
19+
? new ClientError(report.errorData.message, report.errorData.type ?? 'ClientError')
1520
: undefined;
1621

1722
logger.error('Client error report', {

0 commit comments

Comments
 (0)