Skip to content

Commit 6653973

Browse files
dmealingclaude
andcommitted
docs: update workspace-root + test-running guidance after hoist
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 63df250 commit 6653973

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,14 @@ meta migrate --dry-run # preview without writing migration file
444444

445445
## Running tests
446446

447-
The Bun workspace root is `typescript/`. Run `bun test` / `bun run` from `typescript/` (or a specific package directory) — **never from the repository root**. At the repo root there is no workspace `package.json`, so Bun scans the entire polyglot tree (`java/`, `python/`, `csharp/`, `fixtures/`, every `node_modules/`) and re-resolves `@metaobjectsdev/*` imports per file — turning a ~3-second run into several minutes.
447+
The Bun workspace root is the **repository root** (`/package.json`), which globs `server/typescript/packages/*` and `client/web/packages/*`. Java/Python/C# live outside the JS workspace (not globbed). Run `bun install` **once at the repo root**. Run `bun test` **scoped**`cd server/typescript && bun test` for the server suite (this also picks up `server/typescript/bunfig.toml`'s test preload), and per-package for `client/web`. **Never run a bare `bun test` at the repo root**: it walks `java/`, `python/`, `csharp/`, and `fixtures/` looking for test files, turning a ~3-second run into minutes.
448448

449449
```
450-
cd typescript && bun test # whole TS monorepo (~3s, 1784+ tests)
451-
cd typescript && bun run --filter '*' typecheck # whole monorepo typecheck
452-
cd typescript/packages/<pkg> && bun test # a single package
450+
bun install # once, at the repo root
451+
cd server/typescript && bun test # server suite (~3s, 2123 tests)
452+
cd client/web/packages/<pkg> && bun test # a single client package
453+
bun run --filter '*' typecheck # whole workspace, from repo root
454+
bun run --filter '*' build # whole workspace, from repo root
453455
```
454456

455457
## How to contribute

0 commit comments

Comments
 (0)