[Bug]: CI never runs a TypeScript typecheck; main fails `tsc --noEmit` with 9 errors

Open
#469 6 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@ayanasarkar is already working on this.

Since Nov 15, 2026.

  • #476 by @surajrastogi1 — closed without merging
  • #485 by @ayanasarkar — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, typescript
Domain
ci-cd, testing

Research direction

Start by reading .github/workflows/ci.yml and package.json, then run npx tsc --noEmit to confirm the reported errors in src/server/clipboard.test.ts and src/server/gstreamer/gstManager.ts. Add a typecheck script and CI step after the existing type errors are resolved. Done when CI runs the typecheck and fails on TypeScript errors.

Written by the indexing model from the issue text.

Description

bug enhancement
Bug Description

.github/workflows/ci.yml (pull_request into main) only runs biome ci and npm run build. vite build does not type-check, so type errors can never fail CI, and package.json has no typecheck script. At main@71d5717, npx tsc --noEmit reports 9 errors. One of them (#450, missing execSync import in gstManager.ts) is a real runtime ReferenceError on Linux that a typecheck step would have caught. PR #461 (https://github.com/AOSSIE-Org/Rein/pull/461) touched src/server/clipboard.test.ts and merged with all 8 checks passing (including CI/validate), and that file still fails tsc today.

Steps to Reproduce
  1. git checkout 71d5717 && npm ci
  2. npx tsc --noEmit
  3. 9 errors: gstManager.ts(99,17) TS2304 Cannot find name 'execSync' (see #450), and 8x TS2740 in src/server/clipboard.test.ts (lines 66, 77, 87, 106, 123, 124, 139, 140): MockChildProcess is missing properties from ChildProcess
  4. Open .github/workflows/ci.yml: no step runs tsc
Expected Behavior

CI fails on type errors: a typecheck script (tsc --noEmit) exists and runs in ci.yml, once the existing errors are fixed. Related but separate: #456 (Vitest in CI) and #450 (execSync import). Happy to add the script, the CI step and a properly typed MockChildProcess mock if that is welcome.

Desktop Operating System

Windows 11

Client OS and browser

N/A - tooling/CI issue, no client involved

Rein Version

1.0.0 (main @ 71d5717)

Console Logs / Error Messages (Optional)
src/server/clipboard.test.ts(66,4): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(77,36): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(87,4): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(106,36): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(123,25): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(124,25): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(139,25): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/clipboard.test.ts(140,25): error TS2740: Type 'MockChildProcess' is missing the following properties from type 'ChildProcess': stderr, stdio, killed, connected, and 10 more.
src/server/gstreamer/gstManager.ts(99,17): error TS2304: Cannot find name 'execSync'.
Screenshots / Recordings (Optional)

No response

Checklist
  • I have searched for existing issues to avoid duplicates
Dominant language
TypeScript
Stars
55
Forks
120
Avg merge
4d 5h
Merged PRs (30d)
24

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/Rein

All issues in AOSSIE-Org/Rein

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.