Skip to content

Commit 1edc31e

Browse files
committed
Fix TypeScript linting errors in E2E tests
1 parent 4d84a59 commit 1edc31e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/e2e/csv-validator.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ test.describe('CSV Data Validator Application', () => {
9797
await page.route('**/api/generate-schema-doc', async (route: Route) => {
9898
console.log('Mocking /api/generate-schema-doc');
9999

100-
// Extract the schema from the request body
101-
const requestData = route.request().postDataJSON();
102-
const schemaTitle = requestData?.title || 'Schema';
100+
// Extract the schema from the request body with proper typing
101+
const requestData = route.request().postDataJSON() as { title?: string };
102+
const schemaTitle = (requestData?.title as string) || 'Schema';
103103

104104
const mockMarkdown = `
105105
# ${schemaTitle}

0 commit comments

Comments
 (0)