Skip to content

test!: unit tests beside their code, integration suites under e2e/ (CL-8370) - #843

Merged
TheGreatAxios merged 10 commits into
mainfrom
cl-8370-tests-colocated-or-e2e
Sep 18, 2026
Merged

TheGreatAxios merged 10 commits into
mainfrom
cl-8370-tests-colocated-or-e2e

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Deletes every per-package test/ directory (apps/web, apps/hub, agents/myra, packages/agent-directory, packages/cron, packages/webhook-triggers, packages/workflows, tools/granola, tools/linear) plus the root test/.
  • Load-bearing unit tests move to src/**/*.test.ts(x) beside the module they cover; DB-backed and cross-module integration suites move to e2e/<area>/, with shared helpers (db-gate, database-url, disposable-hub-data-dir) now in e2e/lib/.
  • packages/migration-runner/test/ is left in place (only its imports of the moved root helpers were repointed) since another PR deletes that package.
  • tsconfigs drop test from include; tsconfig.src.json files already excluded *.test.ts(x); publishable package.json files lists gained !src/**/*.test.ts(x) negations; apps/web's test script and bunfig.toml preload now point at src.
  • test/tsconfig.json folded into e2e/tsconfig.json; scripts/typecheck.ts checks that instead.

Test plan

  • bun run typecheck — no new errors (three pre-existing failures in apps/hub/src/server.ts, e2e/browser/walkthrough.ts, tools/granola/src/client.ts, none touched by this PR)
  • bun run lint
  • bun run fmt:check
  • bun run test (all workspace packages green, 1717 web unit tests included)
  • Spot-checked e2e DB suites against a real Postgres instance (module resolution confirmed; queries reached the DB)

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8370

@TheGreatAxios
TheGreatAxios force-pushed the cl-8370-tests-colocated-or-e2e branch 2 times, most recently from 12b6075 to b423453 Compare September 18, 2026 01:53
… e2e/browser and doomed-package suites (CL-8370)

Deletes 103 apps/web unit tests that only rendered a component, pinned
copy/CSS/route literals, or re-tested composition/section-registry
wiring; keeps 28 that cover wire parsing, grant/approval decisions,
credential/secret shaping, and dedup/reconciliation logic a user would
notice break. Deletes e2e/browser/walkthrough.ts (referenced a deleted
connections module and a missing harness.ts) and the e2e suites for
webhook-triggers/granola/linear/tool-package-version, which depend on
@corbits/credential-providers and @corbits/tool-registry-publish —
both being deleted. Wires e2e/ into `bun run test` via a new
`test:e2e` script that runs when DATABASE_URL is set and skips (via
each suite's own dbGate banner) otherwise.
@TheGreatAxios
TheGreatAxios force-pushed the cl-8370-tests-colocated-or-e2e branch from b423453 to 7ca202c Compare September 18, 2026 01:57
@TheGreatAxios
TheGreatAxios merged commit db50a14 into main Sep 18, 2026
4 checks passed
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.

1 participant