lundi 23 avril 2018

Typescript outputs properties errors

I follow this tutorial enter link description here to run the tests of a project written in angular and generated by jHipster but something seems to be wrong and some errors appear. This error appears when I run the tests with yarn test command:

ERROR: ....component.ts[31, 17]: Property 'callme'
is declared but its value is never read.
But this property is there for any reason. If I remove it the error is that the this property is not found. On both cases the tests cannot be run nor with Karma nor with Cucumber. I have installed the typescript library, tslint, karma plugins, cucumber, yarn. I also cleaned teh npm cache deleted node_modules and did npm install. No result. Has somebody experienced this? Please share with us the solution, cause I have been doing a 7 days research in the internet and tried almost everything.

Aucun commentaire:

Enregistrer un commentaire