integratedhub/TODO.md
2026-01-20 13:20:35 -06:00

55 lines
1.7 KiB
Markdown

# 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
1. **tests/e2e/helpers.ts:82:31** - `({ id })` parameter has implicit any type
2. **tests/e2e/invite-tenant.spec.ts** - Multiple test functions with `page` parameter
- Line 4:62
- Line 77:75
3. **tests/e2e/landlord-dashboard.spec.ts** - Multiple test functions with `page` parameter
- Line 4:65
- Line 27:68
- Line 39:54
- Line 64:57
4. **tests/e2e/landlord-messages.spec.ts** - Multiple test functions with `page` parameter
- Line 4:65
- Line 29:73
5. **tests/e2e/landlord-onboarding.spec.ts** - Multiple test functions with `page` parameter
- Line 4:70
- Line 28:73
6. **tests/e2e/multi-property.spec.ts:4:66** - Test function with `page` parameter
7. **tests/e2e/onboarding.spec.ts** - Multiple test functions with `page` parameter
- Line 4:75
- Line 24:73
- Line 44:62
- Line 56:75
8. **tests/e2e/reminders.spec.ts:4:68** - Test function with `page` parameter
9. **tests/e2e/tenant-dashboard.spec.ts** - Multiple test functions with `page` parameter
- Line 4:68
- Line 18:67
- Line 31:58
- Line 50:68
- Line 70:62
## Required Actions
1. **Add proper TypeScript types for Playwright test parameters**
- Import Page type from `@playwright/test`
- Type the `page` parameter in all test functions
- Type the `id` parameter in helpers.ts
2. **Example fix pattern:**
```typescript
import { Page, TestInfo } from '@playwright/test';
test("example test", async ({ page }: { page: Page }) => {
// test code
});
```
3. **Run deno check again after fixes to verify all errors resolved**