Skip to content

Allow to mock out components in Codgen mode #6276

@tbosch

Description

@tbosch

Right now, the codgen'ed views reference other views directly.
We need a mode for codegen that goes via a global registry that can be used by test to install mock components.

So:

  • Change the codegen / transformer to have a special mode/flag that reads this global registry
  • Add TestComponentBuilder.replaceComponent to use this registry
  • Create a first integration test that uses precompiled components

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions