1.7 KiB
1.7 KiB
TODO - Deno Check Errors
TypeScript Errors Found (51 total)
Common Error Pattern
Most errors are TS7031: Binding element 'page' implicitly has an 'any' type in test files.
Files Requiring Fixes
- tests/e2e/helpers.ts:82:31 -
({ id })parameter has implicit any type - tests/e2e/invite-tenant.spec.ts - Multiple test functions with
pageparameter- Line 4:62
- Line 77:75
- tests/e2e/landlord-dashboard.spec.ts - Multiple test functions with
pageparameter- Line 4:65
- Line 27:68
- Line 39:54
- Line 64:57
- tests/e2e/landlord-messages.spec.ts - Multiple test functions with
pageparameter- Line 4:65
- Line 29:73
- tests/e2e/landlord-onboarding.spec.ts - Multiple test functions with
pageparameter- Line 4:70
- Line 28:73
- tests/e2e/multi-property.spec.ts:4:66 - Test function with
pageparameter - tests/e2e/onboarding.spec.ts - Multiple test functions with
pageparameter- Line 4:75
- Line 24:73
- Line 44:62
- Line 56:75
- tests/e2e/reminders.spec.ts:4:68 - Test function with
pageparameter - tests/e2e/tenant-dashboard.spec.ts - Multiple test functions with
pageparameter- Line 4:68
- Line 18:67
- Line 31:58
- Line 50:68
- Line 70:62
Required Actions
-
Add proper TypeScript types for Playwright test parameters
- Import Page type from
@playwright/test - Type the
pageparameter in all test functions - Type the
idparameter in helpers.ts
- Import Page type from
-
Example fix pattern:
import { Page, TestInfo } from '@playwright/test'; test("example test", async ({ page }: { page: Page }) => { // test code }); -
Run deno check again after fixes to verify all errors resolved