Skip to content

fix(fetchium): Fix CI failures in type checking and tests - #2

Merged
jimmy-phantom merged 3 commits into
mainfrom
fix/typescript-type-check-errors
Apr 6, 2026
Merged

fix(fetchium): Fix CI failures in type checking and tests#2
jimmy-phantom merged 3 commits into
mainfrom
fix/typescript-type-check-errors

Conversation

@jimmy-phantom

@jimmy-phantom jimmy-phantom commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix Cannot find module 'src/types.js' type check errors by using relative imports in 3 test files
  • Fix Property 'params' is used before its initialization by reordering class property declarations in mutations test
  • Fix Element implicitly has an 'any' type for HeadersInit indexing with a type assertion
  • Fix missing variable declarations in skipped test cases
  • Fix wrong test-id assertion in async-query-store test (user-2 should be user-1)
  • Run Prettier to fix formatting

Test plan

  • npm run check-types passes
  • npm run lint passes
  • npm run test passes

🤖 Generated with Claude Code

jimmy-phantom and others added 3 commits April 6, 2026 13:50
- Use relative imports instead of 'src/types.js' absolute paths
- Reorder class properties to fix use-before-initialization
- Add type assertion for HeadersInit indexing
- Add missing variable declarations in skipped tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The test rendered UserComponent with userId="1" but asserted on
test-id "user-2". Changed assertion to match "user-1".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jimmy-phantom jimmy-phantom changed the title fix(fetchium): Fix TypeScript type check errors in tests fix(fetchium): Fix CI failures in type checking and tests Apr 6, 2026
@jimmy-phantom
jimmy-phantom merged commit b24a982 into main Apr 6, 2026
1 check passed
@jimmy-phantom
jimmy-phantom deleted the fix/typescript-type-check-errors branch April 6, 2026 21:09
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.

2 participants