Testing
Testing Tenant Module Code
Unit Testing Resolvers
Resolver unit tests can extend ViaductResolverTestBase, which provides utilities for mocking ExecutionContext and handles injection. In order to test a resolver, inject it into the test class, and then call its resolve function in your test case with a ExecutionContext constructed using ViaductResolverTestBase.contextForResolver(...).
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.