Skip to content

Commit 00d9439

Browse files
lidge-junclaude
andcommitted
chore(test): pin bun test discovery to ./tests via bunfig
A bare `bun test` also matches vendored trees under devlog/ (their specs need deps we don't install) and reports spurious failures. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f41624f commit 00d9439

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

bunfig.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Scope `bun test` discovery to opencodex's own suite.
2+
#
3+
# Vendored trees under devlog/ (opencode-cursor, _chase/_litellm, _cca …) ship their own
4+
# *.test.ts / *.spec.ts files with deps we don't install (react/jsx-dev-runtime, @playwright/test),
5+
# so a bare `bun test` — or `bun test tests/` (a substring filter that also matches
6+
# devlog/opencode-cursor/tests/) — drags them in and reports hundreds of spurious failures.
7+
# `root` pins discovery to ./tests so every invocation stays on the real suite.
8+
# The npm script already uses `bun test ./tests/`; this makes a bare `bun test` behave the same.
9+
[test]
10+
root = "tests"

0 commit comments

Comments
 (0)