Skip to content

fix: resolve TypeScript errors in tests#3

Merged
stordahl merged 1 commit intotesting-cifrom
fix-typecheck
Apr 19, 2026
Merged

fix: resolve TypeScript errors in tests#3
stordahl merged 1 commit intotesting-cifrom
fix-typecheck

Conversation

@baudebot-hacksaw
Copy link
Copy Markdown
Collaborator

Fixes typecheck errors by adding .js extensions to imports and proper type annotations.

Changes

  • Add .js extensions to all relative imports (ESM module resolution with node16/nodenext)
  • Add type annotations to function parameters using 'any' type for callbacks
  • Remove unused imports (vi from hooks.test.ts)
  • Prefix unused parameters with underscore (_ctx in integration.test.ts)
  • Fix unknown error types in catch blocks with explicit 'unknown' type

Test Results

✅ Typecheck: All errors resolved
✅ Tests: 68 passed, 5 test files passed

- Add .js extensions to all relative imports (ESM module resolution)
- Add type annotations to function parameters (use 'any' for callback context)
- Fix unused variable warnings by removing unused imports and prefixing with _

Fixes:
- Missing .js extensions in hooks.test.ts, integration.test.ts, router.test.ts, scanner.test.ts, validation.test.ts
- Implicit 'any' type errors in function parameters
- Unused 'vi' import in hooks.test.ts
- Unused 'ctx' parameter in integration.test.ts afterRun hook
- Unknown error type in catch blocks in validation.test.ts
@stordahl stordahl merged commit e1c9456 into testing-ci Apr 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants