Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn test failing #327

Open
Justus-Maier opened this issue Apr 4, 2018 · 2 comments
Open

yarn test failing #327

Justus-Maier opened this issue Apr 4, 2018 · 2 comments

Comments

@Justus-Maier
Copy link

Unit Test(s) are broken (fresh clone) since the ngx/store integration, please fix.

SUMMARY:
V 0 tests completed
× 1 test failed

FAILED TESTS:
  App Component
    × should contain app text
      Chrome 64.0.3282 (Windows 7 0.0.0)
      StaticInjectorError(Platform: core)[AppComponent -> Store]:
        NullInjectorError: No provider for Store!
    Error: StaticInjectorError(DynamicTestModule)[AppComponent -> Store]:
        at _NullInjector../node_modules/@angular/core/esm5/core.js._NullInjector.get(webpack:///node_modules/@angular/core/esm5/core.js:1002:0 <- test-config/spec-bundle.js:66684:19)
@Justus-Maier
Copy link
Author

Justus-Maier commented Apr 4, 2018

The Injector Error can be solved by importing StoreModule(.forRoot) into the TestBed, but I'm unsure about the configuration, the router-outlet is empty then.

@Justus-Maier
Copy link
Author

Justus-Maier commented Apr 4, 2018

Maybe it would be possible to add even more tests to get a good coverage with this starter right from the beginning? Watch mode configuration for TDD is well done and working including coverage reports!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant