-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Description
I am having the case of a routed component that requires some resolved data. The component itself has some imports that require stubbing. In the pre-standalone era this was done easily via imports. With standalone it should be done via componentImports. However, componentImports does not override routed component imports, only the rendered component's imports.
await render(MyComponent, {
componentImports: [FontAwesomeTestingModule],
declarations: [StubSelectComponent],
initialRoute: '',
routes: [
{ path: '', component: MyComponent, resolve: { page: () => requestPageData() } },
],
});Now, I know that this is flawed, but I am trying to achieve a truly routed component whose imports are stubbed.
Metadata
Metadata
Assignees
Labels
No labels