Skip to content

chore: add tsconfig.spec.json#4798

Merged
yusukebe merged 2 commits intomainfrom
chore/ts-config-spec
Mar 10, 2026
Merged

chore: add tsconfig.spec.json#4798
yusukebe merged 2 commits intomainfrom
chore/ts-config-spec

Conversation

@yusukebe
Copy link
Member

@yusukebe yusukebe commented Mar 9, 2026

Follow up #4797

Added tsconfig.spec.json to enable type checks for test files.

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running bun install in the local added "configVersion": 0.

@github-actions

This comment has been minimized.

@codecov
Copy link

codecov bot commented Mar 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.83%. Comparing base (d69deb8) to head (7858234).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4798   +/-   ##
=======================================
  Coverage   92.83%   92.83%           
=======================================
  Files         177      177           
  Lines       11623    11623           
  Branches     3461     3461           
=======================================
  Hits        10790    10790           
  Misses        832      832           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yusukebe
Copy link
Member Author

yusukebe commented Mar 9, 2026

Hey @BarryThePenguin !

The CI fails. How about specifying tsconfig.build.json in bun tsc --build on the CI to avoid CI error? Or do you have any other idea?

diff --git a/.github/actions/perf-measures/action.yml b/.github/actions/perf-measures/action.yml
index 69e35fca..252dc67e 100644
--- a/.github/actions/perf-measures/action.yml
+++ b/.github/actions/perf-measures/action.yml
@@ -16,7 +16,7 @@ runs:
         bun-version-file: '.tool-versions'
     - run: |
         bun install --frozen-lockfile
-        bun tsc --build
+        bun tsc --build tsconfig.build.json
       shell: bash

     - name: Performance measurement of type check (tsc)

Co-authored-by: Jonathan Haines <jonno.haines@gmail.com>
@github-actions
Copy link

Bundle size check

main (d69deb8) #4798 (d30e229) +/-
Bundle Size (B) 18,483B 18,483B 0B
Bundle Size (KB) 18.05K 18.05K 0K

Compiler Diagnostics (tsc)

main (d69deb8) #4798 (d30e229) +/-
Files 229 229 0
Lines 146,713 146,713 0
Identifiers 124,376 124,376 0
Symbols 150,571 150,571 0
Types 157,116 157,116 0
Instantiations 401,466 401,466 0
Memory used 251,661K 251,846K 185K
I/O read 0.03s 0.02s -0.01s
I/O write 0s 0s 0s
Parse time 0.73s 0.73s 0s
Bind time 0.28s 0.28s 0s
Check time 1.48s 1.47s -0.01s
Emit time 0.01s 0.01s 0s
Total time 2.5s 2.49s -0.01s

Compiler Diagnostics (typescript-go)

main (d69deb8) #4798 (d30e229) +/-
Files 229 229 0
Lines 150,894 150,894 0
Identifiers 125,054 125,054 0
Symbols 190,881 190,881 0
Types 255,504 255,504 0
Instantiations 609,037 609,037 0
Memory used 162,058K 162,041K -17K
Memory allocs 1,768,217 1,764,849 -3,368
Config time 0.001s 0.001s 0s
BuildInfo read time 0.001s 0.001s 0s
Parse time 0.095s 0.093s -0.002s
Bind time 0s 0s 0s
Check time 0.463s 0.458s -0.005s
Emit time 0.005s 0.004s -0.001s
Changes compute time 0.025s 0.04s 0.015s
Total time 0.628s 0.632s 0.004s

Reported by octocov

@github-actions
Copy link

HTTP Performance Benchmark

Framework Runtime Average Ping Query Body
hono (origin/main) bun 35,652.81 48,790.51 32,245.73 25,922.19
hono (current) bun 35,891.02 48,863.86 32,420.35 26,388.84
Change +0.67% +0.15% +0.54% +1.80%

@yusukebe
Copy link
Member Author

@BarryThePenguin Nice! Your fix is good. Thank you.

@yusukebe yusukebe merged commit 0e80acb into main Mar 10, 2026
18 checks passed
@yusukebe yusukebe deleted the chore/ts-config-spec branch March 10, 2026 00:58
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