Skip to content

test(ecosystem): cover EVJS H5 SWC runtime helpers - #11

Merged
fireairforce merged 1 commit into
mainfrom
zoomdong/evjs-h5-swc-helpers
Oct 30, 2026
Merged

fireairforce merged 1 commit into
mainfrom
zoomdong/evjs-h5-swc-helpers

Conversation

@fireairforce

Copy link
Copy Markdown
Member

Named RegExp lowering requires @swc/helpers/_/_wrap_reg_exp, which is absent from the helpers dependency shipped by @utoo/pack@1.5.35. Add an evjs-h5 ecosystem suite to exercise this compatibility contract through public EVJS, alongside the dependency fix in utooland/utoo#3433.

The suite prepares a disposable MPA workspace targeting Android 5 / iOS 8 with marked@17.0.5, builds EVJS and the production app, and checks Markdown rendering, named groups, backreferences, replacements, and page errors in Chromium. It checks the underlying RegExp source to prove lowering occurred. A separate assertion resolves the required helper from the candidate Pack's dependency context, because newer helpers hoisted by other EVJS development tools can otherwise mask an incompatible candidate. The fixture does not override helpers or inject resolver aliases.

Register the suite in the manual selector and all matrix, preserving the existing candidate verification and stale-install cleanup. Android/iOS versions are compilation targets; browser execution uses Chromium.

Validation:

  • ut install, ut test (48 passed), ut lint, ut check:workflow, and git diff --check passed; the new suite's dry-run has the expected preparation/install/build/test order.
  • On public EVJS commit 353443dc7f9f, published Pack 1.5.35 fails the candidate helper-export assertion. Its browser test passes under the current hoisted dependency layout, demonstrating why the additional assertion is necessary.
  • The complete suite passes with both Playwright tests when the same published Pack is repacked with only @swc/helpers changed from 0.5.15 to 0.5.23. All other package files and native dependencies remain unchanged. This local macOS ARM64 validation reuses the published native binary; it is not a fresh Rust build.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T09:17:10.153830Z 3aa8a4e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fireairforce
fireairforce merged commit 4eb618c into main Oct 30, 2026
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