Skip to content

Run only react-arborist unit tests in release script#335

Merged
TrevorBurnham merged 1 commit into
jameskerr:mainfrom
TrevorBurnham:fix/release-script-skip-e2e
May 10, 2026
Merged

Run only react-arborist unit tests in release script#335
TrevorBurnham merged 1 commit into
jameskerr:mainfrom
TrevorBurnham:fix/release-script-skip-e2e

Conversation

@TrevorBurnham
Copy link
Copy Markdown
Collaborator

Summary

Root yarn test is workspaces foreach --all run test, which includes the e2e module. e2e's test command boots a static showcase server (serve ./out) and runs Cypress against it. Two problems for the release flow:

  • It requires a prior next build of the showcase, otherwise serve hangs silently (> /dev/null swallows the error). yarn release minor got stuck here.
  • E2e tests aren't a release gate anyway — the Build & Test PR workflow runs them on every PR.

Change

Scope the release-time test step to yarn workspace react-arborist test so it only runs the library's unit tests.

Test plan

  • yarn release minor --preview --any-branch runs jest only and completes
  • Real release on the next version cut

`yarn test` at the root expands to `workspaces foreach --all run test`,
which includes the e2e module. e2e boots a static showcase server and
runs Cypress — it requires a prior `next build`, a browser, and is much
slower than unit tests. It also hangs silently when the showcase static
output isn't built.

E2e tests aren't a release gate (the Build & Test PR workflow runs them
on every PR). The release script only needs to verify the library being
released still passes its own unit tests.
Copilot AI review requested due to automatic review settings May 10, 2026 19:54
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TrevorBurnham TrevorBurnham merged commit 34267e3 into jameskerr:main May 10, 2026
1 check 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.

2 participants