Skip to content

fix(desktop): add @testing-library/dom as explicit dev dependency#38208

Merged
teknium1 merged 3 commits into
mainfrom
hermes/hermes-95cc48e1
Jun 3, 2026
Merged

fix(desktop): add @testing-library/dom as explicit dev dependency#38208
teknium1 merged 3 commits into
mainfrom
hermes/hermes-95cc48e1

Conversation

@teknium1

@teknium1 teknium1 commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the macOS bootstrap installer crash ("INSTALL DIDN'T FINISH", issue #36980): the desktop tsc -b step failed with ~20 TS2305 errors because test files import waitFor/fireEvent/screen/within from @testing-library/react, which re-exports them from @testing-library/dom — declared only as a peer dep, so npm never installed it.

Salvage of #36978 by @vladkvlchk onto current main, with the lockfile regenerated so CI npm ci validates.

Changes

  • apps/desktop/package.json: add @testing-library/dom@^10.4.0 to devDependencies (contributor's commit).
  • package-lock.json: list @testing-library/dom in the apps/desktop devDeps block; drops now-stale peer: true flags (follow-up).
  • scripts/release.py: AUTHOR_MAP prostoandrei9@gmail.com -> vladkvlchk (follow-up).

Validation

Before After
tsc -b (desktop) ~20 TS2305 errors clean
Installer desktop stage exit 1 builds
Lockfile vs manifest mismatch (dom missing from devDeps) consistent

Closes #36978.

Infographic

desktop-installer-fix

vladkvlchk and others added 2 commits June 3, 2026 05:33
@testing-library/react@16 declares @testing-library/dom as a peerDependency
and re-exports waitFor/fireEvent/screen/within from it. Without dom installed
as a direct dependency, tsc -b fails with TS2305 in every test file that
imports those names — which breaks the apps/desktop build during installer
bootstrap (Hermes Setup → "INSTALL DIDN'T FINISH").
- Add @testing-library/dom to apps/desktop devDeps in package-lock.json
  so npm ci validates against the manifest change (contributor left the
  lockfile out of the PR intentionally).
- Removes stale 'peer: true' flags now that dom is an explicit devDep.
- AUTHOR_MAP: prostoandrei9@gmail.com -> vladkvlchk (CI author gate).
@teknium1 teknium1 requested a review from a team June 3, 2026 12:37
@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists labels Jun 3, 2026
Lockfile regeneration invalidated the flake's pinned npm-deps hash.
Hash taken from fetchNpmDeps' authoritative 'got:' line (the
prefetch-npm-deps Diagnose helper reports a different, wrong value
due to a fetcherVersion normalization discrepancy).
@teknium1 teknium1 force-pushed the hermes/hermes-95cc48e1 branch from 999c88d to e89202d Compare June 3, 2026 12:43
@teknium1 teknium1 merged commit ba57ebe into main Jun 3, 2026
22 of 24 checks passed
@teknium1 teknium1 deleted the hermes/hermes-95cc48e1 branch June 3, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants