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.
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:
test/siesta/tests/functional/HtmlTemplateComponent.mjs.