LearnNewsExamplesServices
Frontmatter
id7142
titleExpand Test Coverage with Real Components
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 31, 2025, 12:50 PM
updatedAtAug 2, 2025, 2:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/7142
authortobiu
commentsCount1
parentIssue7130
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 2, 2025, 2:48 PM

Expand Test Coverage with Real Components

Closed v10.3.0 enhancement
tobiu
tobiu commented on Jul 31, 2025, 12:50 PM

Description: While the mock component tests are a good start, we need to ensure the template processor works correctly in real-world scenarios with actual functional components and their lifecycle. This involves creating more complex integration tests.

Implementation Details:

  • Location: Create new test files or enhance test/siesta/tests/functional/HtmlTemplateComponent.mjs.
  • Scenarios to Test:
    • Components with nested children defined in the template.
    • Components that use reactive configs passed in via attributes.
    • Templates that include a mix of standard HTML tags and multiple, different neo.mjs components.
    • Edge cases with complex interpolation in attributes and text nodes.
    • Ensure the entire component lifecycle (mount, update, destroy) works as expected when the VDOM is generated from a template.
tobiu assigned to @tobiu on Jul 31, 2025, 12:50 PM
tobiu added the enhancement label on Jul 31, 2025, 12:50 PM
tobiu added parent issue #7130 on Jul 31, 2025, 12:50 PM
tobiu
tobiu Aug 2, 2025, 2:48 PM

resolved

tobiu closed this issue on Aug 2, 2025, 2:48 PM