Skip to content

chore: run Bun tests with --tsconfig-override - #7338

Open
tomas-zijdemans wants to merge 1 commit into
denoland:mainfrom
tomas-zijdemans:chore/testing-bun-tsconfig-override
Open

tomas-zijdemans wants to merge 1 commit into
denoland:mainfrom
tomas-zijdemans:chore/testing-bun-tsconfig-override

Conversation

@tomas-zijdemans

@tomas-zijdemans tomas-zijdemans commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Root tsconfig.json stays put. deno task test:bun passes the runner config through --tsconfig-override instead of copying it into the repo root.

The old task copied over that gitignored file. A passing run deleted it, while a failing run left the copy behind.

The config stays in _tools/node_test_runner/, with its paths entries relative to that directory. The root ignore rule stays for contributors' local configs.

Tested with Bun 1.4.2: with a deliberately broken root tsconfig.json, 735 tests passed, 24 were skipped, and the file was left untouched. Without the override, Bun failed to resolve @std/path. Bun prints a non-fatal directory mismatch warning with this flag, and the Bun CI job passes.

I used Claude Code to help investigate and write this change.

deno task test:bun copied the Bun config to ./tsconfig.json and removed
it after the run. That overwrote any local tsconfig.json at the repo
root, and a failing test skipped the rm and left the copy behind. Pass
the config with --tsconfig-override instead, and make its paths relative
to _tools/node_test_runner/ where it lives.
@codecov

codecov Bot commented Sep 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.95%. Comparing base (f834d02) to head (be97400).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7338      +/-   ##
==========================================
- Coverage   95.04%   94.95%   -0.10%     
==========================================
  Files         619      618       -1     
  Lines       52012    51757     -255     
  Branches     9450     9379      -71     
==========================================
- Hits        49434    49145     -289     
- Misses       2031     2056      +25     
- Partials      547      556       +9     

☔ View full report in Codecov by Harness.
📢 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.

@tomas-zijdemans tomas-zijdemans changed the title chore: run Bun tests with --tsconfig-override chore(testing): run Bun tests without touching root tsconfig Sep 28, 2026
@tomas-zijdemans
tomas-zijdemans force-pushed the chore/testing-bun-tsconfig-override branch from 2e4432d to be97400 Compare September 28, 2026 17:14
@tomas-zijdemans tomas-zijdemans changed the title chore(testing): run Bun tests without touching root tsconfig chore: run Bun tests with --tsconfig-override Sep 28, 2026

This branch has not been deployed

No deployments
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