Not running libs tests
vuvgaG opened this issue · 2 comments
vuvgaG commented
git clone github.com:stefanoslig/angular-ngrx-nx-realworld-example-app.git ./
npm install
ng test
conduit@0.0.0 test /Users/vuvgag/Repositories/vuvgag/math-checker
> ng test
> nx run conduit:test
PASS conduit apps/conduit/src/app/layout/footer/footer.component.spec.ts
PASS conduit apps/conduit/src/app/layout/navbar/navbar.component.spec.ts
PASS conduit apps/conduit/src/app/app.component.spec.ts
● Console
console.warn
@ngrx/store: The feature name "auth" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('auth', ...) or StoreModule.forFeature('auth', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.
at ../../modules/store/src/selector.ts:755:17
at ../../modules/store/src/selector.ts:574:64
at Array.map (<anonymous>)
at defaultStateFn (../../modules/store/src/selector.ts:574:52)
at ../../modules/store/src/selector.ts:718:30
at memoized (../../modules/store/src/selector.ts:101:33)
at ../../modules/store/src/selector.ts:574:64
at Array.map (<anonymous>)
Test Suites: 3 passed, 3 total
Tests: 3 passed, 3 total
Snapshots: 0 total
Time: 2.055 s
Ran all test suites.
———————————————————————————————————————————————
> NX SUCCESS Running target "test" succeeded
Expected it to run all the tests from the libs folder. Tests continue to not run even when changing the code of a libs module.
vuvgaG commented
./node_modules/.bin/nx affected:test
stefanoslig commented
You can run the tests for the lines like this: nx run-many --target=test --all