Really nice post. But could you provide some guidelines for testing resolve on routing?
Miroslav Zogrfaski
11

Thanks Miroslav! Much appreciated.

You can start by looking at Angular tests here: https://github.com/angular/angular/blob/bebedfed24d6fbfa492e97f071e1d1b41e411280/packages/router/test/router.spec.ts#L72-L87

You should not test Angular resolve mechanism as is already tested by the framework.

You can test the resolver function though.

Like what you read? Give Gerard Sans a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.