#Testing inject() inside a extended class

3 messages · Page 1 of 1 (latest)

thin onyx
#

What happens when

  • you use providedIn: 'root' instead of providedIn: null
  • you use TestBed.inject(...) insted of TestBed.inject(EnvironmentInjector).get(...)?
spare quest
#

I get exactly the same error

thin onyx
#

Try reproducing your issue in a minimal reproduction project. Remove everything that should be unrelated to the issue.