Skip to content

test: fail fast with one message when node_modules is missing - #198

Merged
taraxvoid merged 1 commit into
mainfrom
worktree-197-test-deps-guard
Oct 22, 2026
Merged

taraxvoid merged 1 commit into
mainfrom
worktree-197-test-deps-guard

Conversation

@taraxvoid

Copy link
Copy Markdown
Owner

Adds a bun test preload (test/require-deps.ts, wired in bunfig.toml) that exits with a single "run bun install" message when node_modules is missing. Covers the check-licenses and biome test failures in a fresh worktree, and voidflow's own pre-push (bun test).

Not covered: the pre-commit side, which is #196.

Verified: no deps gives one message and a non-zero exit; with deps the full suite passes (167). Breaking the guard fails the new test.

Closes #197

🤖 Generated with Claude Code

Suites resolve voidflow's own install (biome, license-checker), so a fresh
worktree failed 7 tests with unrelated ENOENT/exit-code errors, and pre-push
`bun test` hit the same. A bunfig preload now exits with a 'run bun install'
message instead.

Refs #197

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@taraxvoid
taraxvoid merged commit 941b8f4 into main Oct 22, 2026
2 checks passed
@taraxvoid
taraxvoid deleted the worktree-197-test-deps-guard branch October 22, 2026 00:33
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.

bun test fails with confusing errors when node_modules is missing (fresh worktree, pre-push)

1 participant