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
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:
TestComponentBuilder.replaceComponentto use this registry