Skip to content

fix(site): keep test files out of the app typecheck - #2557

Merged
thdxr merged 1 commit into
devfrom
fix/site-tsc-test-exclude
Nov 23, 2026
Merged

thdxr merged 1 commit into
devfrom
fix/site-tsc-test-exclude

Conversation

@thdxr

@thdxr thdxr commented Nov 23, 2026

Copy link
Copy Markdown
Member

deploy run 45233896350 failed in the site build, at tsc -b:

src/dev-notes.test.ts(3,30): error TS2307: Cannot find module 'bun:test' or its corresponding type declarations.

#2551 added site/src/dev-notes.test.ts, and site/tsconfig.app.json includes src, so tsc typechecks the test file. the site has no bun types package and we don't want to add a dependency for it.

this excludes src/**/*.test.ts from the app project. the test itself is unchanged and still runs under bun test.

verified locally: bunx tsc -b --force exits 0 with this change and reproduces the error above without it, and bun test src/dev-notes.test.ts still passes (5 pass). tsconfig.node.json only lists specific files, so no other project picks the test up.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr
thdxr merged commit 4fe80d2 into dev Nov 23, 2026
1 check passed
@thdxr
thdxr deleted the fix/site-tsc-test-exclude branch November 23, 2026 18:07
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