Closed CalaxDev closed 2 years ago
This seems to be the same as #1759.
This seems to be the same as #1759.
Yes!
To anyone stumbling across this issue until it's resolved/patched/released, please refer to issue 1759 as linked above and view damienwebdevs answer. It's a temporary fix to get things running again.
Describe the bug
I have setup my Apollo Testing according to https://apollo-angular.com/docs/development-and-testing/testing#apollotestingmodule Now when I run the Testsuite, it fails with an Error Message like "NullInjectorError: No provider for Apollo!"
It is to note that I am using GraphQLCodeGen to generate code based on my graphql-Files and Server Schema, but that should not be an issue here.
My code looks just like the following: app.component.ts
app.component.spec.ts
It fails with:
To Reproduce Setup and follow the instructions on the Getting Started (https://apollo-angular.com/docs/get-started) and then the Testing (https://apollo-angular.com/docs/development-and-testing/testing) pages
Expected behavior
Working Tests according to the docs
Environment: Windows 10, Node v16.14.2, npm v7.13.0