npm test results in a failed test and this error message:
Nest can't resolve dependencies of the AppController (AppService, ?). Please make sure that the argument at index [1] is available in the _RootTestModule context.
a mock provider for the SeedService should also be injected, since app controller also has a dependency on it. Here is the corrected code which generates a passing test:
npm test
results in a failed test and this error message:a mock provider for the
SeedService
should also be injected, since app controller also has a dependency on it. Here is the corrected code which generates a passing test: