Skip to content

chore: exclude _tmp from deno config - #7312

Open
tomas-zijdemans wants to merge 1 commit into
denoland:mainfrom
tomas-zijdemans:chore-exclude-tmp-from-deno-config
Open

chore: exclude _tmp from deno config#7312
tomas-zijdemans wants to merge 1 commit into
denoland:mainfrom
tomas-zijdemans:chore-exclude-tmp-from-deno-config

Conversation

@tomas-zijdemans

@tomas-zijdemans tomas-zijdemans commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

deno task ok fails if you leave a markdown file in _tmp/.

_tmp/ is the gitignored agent scratch dir from #7064. fmt and lint honour .gitignore and skip it. deno test doesn't, so --doc type-checks the TS fences in whatever notes an agent left behind:

TS2304 [ERROR]: Cannot find name '_internals'.
    at file:///.../_tmp/fake-time-drop-proxy-design.md#55-72.ts:9:34

The --ignore=_tools/,_tmp/ on the test tasks is the part that fixes it: a CLI --ignore replaces the config exclude rather than adding to it. The "_tmp" in exclude covers a bare deno test or deno check.

Scratch notes are not doctests.

deno task ok exits 0 with a design note sitting in _tmp/. Nine type errors without the change.

`_tmp/` is gitignored as an agent scratch dir (denoland#7064), but `deno test` does not
honour `.gitignore` for file discovery. `deno task test` passes `--doc`, so any
`.md` left in `_tmp/` gets its TS code fences type-checked and `deno task ok`
fails. Scratch notes are not doctests.

A CLI `--ignore` replaces the config `exclude` rather than adding to it, so the
test tasks need `_tmp/` spelled out. The `exclude` entry covers bare `deno test`
and `deno check` invocations. `deno fmt` and `deno lint` already skip the
directory.
@tomas-zijdemans
tomas-zijdemans force-pushed the chore-exclude-tmp-from-deno-config branch from 0214a7b to 825aeda Compare September 6, 2026 20:10
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.03%. Comparing base (ca58f94) to head (825aeda).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7312      +/-   ##
==========================================
- Coverage   95.03%   95.03%   -0.01%     
==========================================
  Files         617      618       +1     
  Lines       51637    51892     +255     
  Branches     9359     9408      +49     
==========================================
+ Hits        49075    49316     +241     
- Misses       2021     2030       +9     
- Partials      541      546       +5     

☔ 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.

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