Skip to content

chore(tests): remove unit tests, keep one app boot test - #5589

Merged
benjaminshafii merged 4 commits into
devfrom
chore/remove-unit-tests
Oct 3, 2026
Merged

benjaminshafii merged 4 commits into
devfrom
chore/remove-unit-tests

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Removes every unit test in the repo. The only one kept is a single app boot test. The E2E journeys in evals/ are now how we verify changes.

What problem does it solve?

About 1,250 unit-test files (~289k lines) slowed CI and every refactor. They mostly checked implementation details that the journeys already cover end to end.

What was the situation before?

Every PR ran the bun, node and vitest unit suites in addition to the journeys. Changing internals meant rewriting tests that no user would ever notice.

How is this implemented?

  • Deletes *.test.* files and test dirs across apps/, packages/, ee/ and scripts/.
  • Removes the package scripts, tsconfigs, workflow steps and jobs, and test-only deps that only ran them. ci-tests.yml keeps the typecheck, the core journeys and the packaged smoke run.
  • Keeps providers.test.tsx, renamed to apps/app/tests/app-boot.test.tsx. It mounts the real provider tree on an enterprise install, before and after activation. It runs as pnpm test:boot.
  • Keeps 31 test files that an evals journey or world runs or imports.

What else changed?

  • apps/app/tsconfig.json: lib goes from ES2023 to ES2024. The app uses Promise.withResolvers, and the deleted tests had been hiding the missing type.
  • Deletes evidence-checkpoint-proof.yml and required-verification.yml, which only ran unit tests.
  • Deletes the mysql-0097-native world, which only ran den-db unit tests.
  • Short updates to the run-tests, diagnose-a-red-run and open-a-pr skills and to docs/testing.md.

Release note

none

Evidence

No E2E: this PR only removes tests. pnpm test:boot passes 2 of 2. pnpm -r --if-present typecheck passes.

@benjaminshafii
benjaminshafii requested a review from a team October 3, 2026 04:34
@vercel

vercel Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Oct 3, 2026 4:52am UTC
openwork-den Ready Ready Preview Oct 3, 2026 4:52am UTC
openwork-diagnostics Ready Ready Preview Oct 3, 2026 4:52am UTC
openwork-landing Ready Ready Preview, v0 Oct 3, 2026 4:52am UTC

@github-actions

github-actions Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟡 Updating evidence b16014e View run 2026-10-03 04:52:04 UTC

A preview for this commit is being prepared.

Benjamin Shafii added 4 commits October 2, 2026 21:50
Delete every unit test across apps/, packages/, ee/ and scripts/ along
with the scripts, workflow steps, tsconfigs and deps that only ran them.
E2E journeys in evals/ are the verification surface; unit tests that a
journey still runs or imports are kept.

The provider-tree mount test (providers.test.tsx) is kept and renamed
to apps/app/tests/app-boot.test.tsx, run as `pnpm test:boot` in CI.
The packaged Electron smoke gate is unchanged.

Signed-off-by: Benjamin Shafii <[email protected]>
The proof selector and evidence presenter shell out to `gh api` with
Node's default 1 MiB maxBuffer. A page of /pulls/:n/files on a large
deletion PR exceeds that, spawnSync fails with ENOBUFS, and selection
reports 'GitHub proof selection unavailable'.

Signed-off-by: Benjamin Shafii <[email protected]>
@benjaminshafii
benjaminshafii force-pushed the chore/remove-unit-tests branch from eb0dfc7 to b16014e Compare October 3, 2026 04:51
@benjaminshafii
benjaminshafii merged commit 9437001 into dev Oct 3, 2026
24 of 30 checks passed
benjaminshafii pushed a commit that referenced this pull request Oct 3, 2026
Follows #5589: the unit tests this branch added or changed are removed with the rest, and den-api's package.json takes dev's scripts.

Signed-off-by: Benjamin Shafii <[email protected]>

This branch was successfully deployed

4 active deployments
Preview – openwork-app — b16014e4 Deployed Oct 3, 2026 by vercel[bot]
Preview – openwork-den — b16014e4 Deployed Oct 3, 2026 by vercel[bot]
Preview – openwork-landing — b16014e4 Deployed Oct 3, 2026 by vercel[bot]
Preview – openwork-diagnostics — b16014e4 Deployed Oct 3, 2026 by vercel[bot]
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