createRoutingFactory
and createServiceFactory
are mutually exclusive?
#527
Unanswered
tstackhouse
asked this question in
Q&A
Replies: 1 comment 1 reply
-
In your test file can't you just create a fake |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to test a service that injects
ActivatedRoute
but I can't usecreateRoutingFactory
without a component declaration, and service is not part of the options, butcreateServiceFactory
doesn't provide options for mocking out the route, leaving me to manually mock my routes.Am I missing something or is this intended? Or is it a code smell for how I have my code designed? The service is a small shared-state service for a micro-front end that factors out a bunch of route handling and data related logic from 4 different components, all of which were doing the exact same parsing of the route and configuring the state.
Beta Was this translation helpful? Give feedback.
All reactions