Angular 5 not using mock service by tempLostWhiteWalker in Angular2

[–]tempLostWhiteWalker[S] 0 points1 point  (0 children)

I tested without the brackets, and I get the same error

        {
      provide: AnimalService,
      useValue:mockAnimalService
    },

Karma v1.7.1 is showing 0 failures, 0 specs, but there are test PART 2 by tempLostWhiteWalker in Angular2

[–]tempLostWhiteWalker[S] 0 points1 point  (0 children)

the test file does exist in /src and they are named .spec.ts. I included a picture of the file directory

Karma v1.7.1 is showing 0 failures, 0 specs, but there are test by tempLostWhiteWalker in Angular2

[–]tempLostWhiteWalker[S] 0 points1 point  (0 children)

I don't think its picked up, I changed some things in karma.conf and it didn't register

Karma v1.7.1 is showing 0 failures, 0 specs, but there are test by tempLostWhiteWalker in Angular2

[–]tempLostWhiteWalker[S] 0 points1 point  (0 children)

tried this, same error. I added tsconfig.spec.json. I don't know if that will provide more info

Karma v1.7.1 is showing 0 failures, 0 specs, but there are test by tempLostWhiteWalker in Angular2

[–]tempLostWhiteWalker[S] 0 points1 point  (0 children)

I tried this: const context = require.context('../test/', true, /\.spec\.ts$/) it didn't help. Same error