Closed qiluo closed 7 years ago
Please follow basic debugging steps and report back: https://github.com/lathonez/lathonez.github.io/blob/master/_posts/2017-01-02-ionic-2-unit-testing.markdown#debugging-setup
Google suggests typescript version mismatch.
Thanks @lathonez , I've solved the first error, still figuring second one. As for first one, we can refer to https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14569
Nice, thanks for the reference
Btw, I solved the second error, upgrade node to 6.10.
In fact it was very confusing at this time, the node version, typescript version, angular version, angular-cli version, ionic version, any mismatch may cause error.
Thanks for replying with your fixes.
As far as I'm aware, node LTS or higher works fine. No one should be using less than LTS anyway.
Unfortunately we're wrestling with two frameworks that have different dependencies. As long as Ionic don't want to maintain any kind of testing framework we are going to have these issues.
However, angular/cli is the last piece of the puzzle that hasn't gone FINAL yet. Hopefully when they go final everything will cease to have breaking changes.
Hi, I followed your tutorial to set up unit test for my project, btw, I'm on ionic 2.1, angular 2.4, however, I always got above error, and also got error when I run
npm test
Could anyone please advise?