forked from lidge-jun/opencodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbunfig.toml
More file actions
16 lines (16 loc) · 1.03 KB
/
Copy pathbunfig.toml
File metadata and controls
16 lines (16 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Scope `bun test` discovery to opencodex's own suite.
#
# Vendored trees under devlog/ (opencode-cursor, _chase/_litellm, _cca …) ship their own
# *.test.ts / *.spec.ts files with deps we don't install (react/jsx-dev-runtime, @playwright/test),
# so a bare `bun test` — or `bun test tests/` (a substring filter that also matches
# devlog/opencode-cursor/tests/) — drags them in and reports hundreds of spurious failures.
# `root` pins discovery to ./tests so every invocation stays on the real suite.
# File-level `--parallel` has no bunfig key; `scripts/test.ts` passes it for `bun run test`.
# The npm script already uses `bun test ./tests/`; this makes a bare `bun test` behave the same.
[test]
root = "tests"
# Sandboxes HOME/OPENCODEX_HOME/CODEX_HOME and arms the real-home write guard for EVERY
# invocation, including a bare `bun test <file>` that skips `scripts/test.ts`. A test
# once overwrote a real user config through that unwrapped path; see
# devlog/_fin/260730_codex_rs_upstream_v2_live_handoff/070.
preload = ["./tests/preload.ts"]