LearnNewsExamplesServices
Frontmatter
id6978
titleUpdate the `isUsingStateProviders` check to honor `Neo.config.unitTestMode`
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 7, 2025, 7:59 PM
updatedAtJul 7, 2025, 8:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/6978
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 7, 2025, 8:00 PM

Update the isUsingStateProviders check to honor Neo.config.unitTestMode

Closed v10.0.0-beta.5 enhancement
tobiu
tobiu commented on Jul 7, 2025, 7:59 PM
  • Inside the unit test mode, we run neo purely inside the main thread.
  • As a result, Neo.currentWorker does not exist.
  • To better support testing components, we need to add the flag directly to the Neo namespace.
  • Additionally, prevent component#render() and update() attempts.
tobiu assigned to @tobiu on Jul 7, 2025, 7:59 PM
tobiu added the enhancement label on Jul 7, 2025, 7:59 PM
tobiu referenced in commit f3886aa - "Update the isUsingStateProviders check to honor Neo.config.unitTestMode #6978" on Jul 7, 2025, 7:59 PM
tobiu closed this issue on Jul 7, 2025, 8:00 PM
tobiu referenced in commit c55967b - "Update the isUsingStateProviders check to honor Neo.config.unitTestMode #6978" on Jul 9, 2025, 2:10 AM