vendredi 15 janvier 2021

ng test don't find relative path

I am trying to perform my first tests in Angular and I want to test a service, but when I run ng test it gives me an error in all the relative imports that I have defined in the tsconfi.json, such as for example

"@interceptors/*": [
        "./src/app/interceptors/*"
      ],

give me this error

ERROR in src/app/app.module.ts:17:44 - error TS2307: Cannot find module '@interceptors/allhttprequests.interceptor' or its corresponding type declarations.

Aucun commentaire:

Enregistrer un commentaire