Skip to content

fix(ci): resolve all CI failures (frontend tests, specta deps, clippy)#54

Merged
phmatray merged 4 commits into
mainfrom
fix/specta-version-alignment
Mar 9, 2026
Merged

fix(ci): resolve all CI failures (frontend tests, specta deps, clippy)#54
phmatray merged 4 commits into
mainfrom
fix/specta-version-alignment

Conversation

@phmatray
Copy link
Copy Markdown
Contributor

@phmatray phmatray commented Mar 9, 2026

Summary

This PR fixes all CI pipeline failures:

  • Frontend tests: Fix broken import paths in test files and add jsdom polyfills for Monaco editor (queryCommandSupported, matchMedia)
  • Specta dependency conflict: Downgrade specta to =2.0.0-rc.22 and specta-typescript to 0.0.9 to align with tauri-specta 2.0.0-rc.21 requirements
  • Rust clippy: Fix 60 clippy warnings (collapsible if-else, iterator usage, parameter types, dead code)
  • Missing dependency: Add @testing-library/dom as explicit devDependency (peer dep of @testing-library/react)

Test plan

  • npx vitest run passes all 298 tests across 45 suites locally
  • cargo clippy -- -D warnings passes clean locally
  • cargo test passes locally
  • CI pipeline passes all steps (Biome lint, TypeScript check, Frontend tests, Rust clippy, Rust tests)

phmatray added 3 commits March 9, 2026 10:24
- Fix broken import paths in DiffBlade.test.tsx and preferences.test.ts
- Add jsdom polyfills for document.queryCommandSupported and
  window.matchMedia (required by Monaco editor in test environment)
tauri-specta v2.0.0-rc.21 requires specta =2.0.0-rc.22, but Cargo.toml
pinned specta =2.0.0-rc.23 causing a dependency resolution failure.
Downgrade specta to =2.0.0-rc.22 and specta-typescript to 0.0.9.
- Auto-fix 53 collapsible if-else statements
- Fix iterator usage: use .flatten() instead of if let Ok
- Change &PathBuf to &Path parameter in get_status_internal
- Add #[allow] for dead_code on deserialization-only fields
- Add #[allow] for enum_variant_names on ChangelogError
@phmatray phmatray changed the base branch from develop to main March 9, 2026 09:36
@testing-library/react requires @testing-library/dom as a peer
dependency, but it was not explicitly listed in package.json,
causing CI to fail with "Cannot find module '@testing-library/dom'".
@phmatray phmatray changed the title fix(deps): align specta version with tauri-specta requirements fix(ci): resolve all CI failures (frontend tests, specta deps, clippy) Mar 9, 2026
@phmatray phmatray merged commit 129bfd2 into main Mar 9, 2026
5 checks passed
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.

1 participant