From 825aeda3296511e775d08e132774c9f65fc7d997 Mon Sep 17 00:00:00 2001 From: Tomas Zijdemans Date: Sun, 6 Sep 2026 22:06:39 +0200 Subject: [PATCH] chore: exclude _tmp from deno config `_tmp/` is gitignored as an agent scratch dir (#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. --- deno.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deno.json b/deno.json index fd16adbb79aa..879fa562cb4c 100644 --- a/deno.json +++ b/deno.json @@ -16,8 +16,8 @@ }, "unstable": ["webgpu", "fs"], "tasks": { - "test": "deno test -A --parallel --trace-leaks --coverage --doc --clean --ignore=_tools/", - "test:with-unsafe-proto": "deno test --unstable-unsafe-proto --no-check -A --parallel --doc --ignore=_tools/", + "test": "deno test -A --parallel --trace-leaks --coverage --doc --clean --ignore=_tools/,_tmp/", + "test:with-unsafe-proto": "deno test --unstable-unsafe-proto --no-check -A --parallel --doc --ignore=_tools/,_tmp/", "test:tools": "deno test -A --doc _tools/", "test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | grep -v encoding/README.md | grep -v media_types/vendor/update.ts | xargs deno check --config browser-compat.tsconfig.json", "test:node": "(cd _tools/node_test_runner && npm install) && node --import ./_tools/node_test_runner/register_deno_shim.mjs ./_tools/node_test_runner/run_test.mjs", @@ -39,6 +39,7 @@ }, "exclude": [ ".git", + "_tmp", "jsonc/testdata", "toml/testdata", "_tools/node_test_runner",