LearnNewsExamplesServices
Frontmatter
id7704
titleEnhance `worker.App` RMA methods to delegate worker errors
stateClosed
labels
enhancementaitesting
assigneestobiu
createdAtNov 4, 2025, 7:56 PM
updatedAtNov 4, 2025, 8:15 PM
githubUrlhttps://github.com/neomjs/neo/issues/7704
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 4, 2025, 8:15 PM

Enhance worker.App RMA methods to delegate worker errors

Closed v11.0.0 enhancementaitesting
tobiu
tobiu commented on Nov 4, 2025, 7:56 PM

When using RMA methods like createNeoInstance, destroyNeoInstance, and setConfigs in Playwright component tests, any errors occurring within the App worker are not propagated back to the main thread test environment. This leads to opaque timeouts and difficult debugging.

These methods should be updated to follow the pattern used by loadModule. They should wrap their logic in a try...catch block. If an error occurs, they should return a result object containing the error details (e.g., {success: false, error: {message: e.message}}).

Methods to Update:

  • createNeoInstance
  • destroyNeoInstance
  • setConfigs

This change will significantly improve the developer experience for component testing by making worker-side errors immediately visible in the test results.

tobiu added the enhancement label on Nov 4, 2025, 7:56 PM
tobiu added the ai label on Nov 4, 2025, 7:56 PM
tobiu added the testing label on Nov 4, 2025, 7:56 PM
tobiu assigned to @tobiu on Nov 4, 2025, 7:56 PM
tobiu referenced in commit 1630b03 - "Enhance worker.App RMA methods to delegate worker errors #7704" on Nov 4, 2025, 8:15 PM
tobiu closed this issue on Nov 4, 2025, 8:15 PM