Skip to content

Typecheck tests, not just src, in run-unit-tests - #2

Open
edgarfgp wants to merge 1 commit into
mainfrom
feat/typecheck-tsconfig-path
Open

Typecheck tests, not just src, in run-unit-tests#2
edgarfgp wants to merge 1 commit into
mainfrom
feat/typecheck-tsconfig-path

Conversation

@edgarfgp

Copy link
Copy Markdown

Summary

  • The Validate code step in run-unit-tests runs npx tsc --noEmit against the consuming repo's default tsconfig.json
  • For the current consumer, that default config excludes tests/ — type errors in test files were going uncaught by CI, only caught locally via a separate tsconfig.test.json-based script that also covers tests
  • Points the check at tsconfig.test.json (src + tests, noEmit already set there) so CI catches the same errors the local typecheck script does

Test plan

  • Confirmed this action currently has a single consumer org-wide, so no other repo is affected by this change

The Validate code step ran npx tsc --noEmit against the consuming
repo's default tsconfig.json, which excludes tests/ (compiled
separately via tsconfig.test.json, which also sets noEmit). That let
type errors in test files go uncaught by CI.
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