Testing a service that uses the Router #413
Unanswered
tstackhouse
asked this question in
Q&A
Replies: 1 comment
-
Not part of this project but thought you'd like to know about @ngworker/spectacular which addresses this. See https://dev.to/layzee/series/9723 Just found out about it yesterday while listening to "Integration Testing Routed Angular Features with Lars Brink – Part 1" (Adventures in Angular podcast episode 314). |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Spectator currently provides
createRoutingFactory
to test components that use the Router, andcreateServiceFactory
to test services, but there's no way to test a service that uses the Router, without having to manually mock out all the RouterModule classes that are used in the service, which is very error prone.Beta Was this translation helpful? Give feedback.
All reactions