-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source maps are not working #203
Comments
Hey, So the code coverage generator munges the source maps for some reason. If you run
instead of
you should see that the source maps work fine (just checked - I could replicate the behaviour). If you can give me a link to your repo I'll try to help out with the slider undefined problem (please raise another issue). EDIT - if you don't have ng-cli installed globally, ammend this line in package.json to remove the --code-coverage: https://github.com/lathonez/clicker/blob/master/package.json#L12 Thanks |
So basically you can have debug, or coverage, but not both. I'll make it default to debug and do optional coverage |
Updated this repo and the blog |
Thank you very much for a quick response. I confirm that debugging unit tests works after i removed --code-coverage |
Hi,
I created new project from here https://github.com/driftyco/ionic-starter-super and followed the instructions in the blog http://lathonez.github.io/2016/ionic-2-unit-testing/ to enable unit testing however faced couple issues. First, the source maps seems to be generated but when debugging unit tests it is not working. When you click on .ts file it opens js transpiled file - see attached
The other problem is that the test fails because there is an error in ionic slider - see attached
_this.slider is undefined. Not sure why this is happening
The text was updated successfully, but these errors were encountered: