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
Question: How to coverage Typescript using Tape #497
Comments
@kevincaradant nyc should work just fine with tape, my guess is that something is getting lost in translation in the transpilation step -- maybe we're ultimately excluding the source files. I'm looping in @JaKXz who's had a bit more experience on this end of things than me. Is this a library that we can check-out and experiment with? |
@bcoe ,Thanks, to glance a look at my issue. This is my repository ( in building for dev branch ): Go in the Let me know if you need something else. For information: |
Any news about this issue ? |
@kevincaradant I took a brief look tonight, and it seems the underlying complexity to get In the short term, I'd recommend AVA's typescript recipe (since the assertion API is very similar to I can take a more in depth look only later in the week (unfortunately I was very ill last week and have lots to catch up on ATM). |
@JaKXz, thank you to try to have a look knowing that you was sick. I understand now, you will have some works to catch up. The main problem is that I use mock-fs to mock my files in my unit tests. So, I know sometimes, some unit testing doesn't work properly with this library. I hope ava or tap will work. Otherwise, I will be patient waiting a fix with nyc for tape and ts :). |
@kevincaradant would love your help further documenting typescript related configurations, once you have a chance to dig into things further. we have tutorials here that I'd love to see us build out further. |
I was looking for use ava or tap. But I met some different problems and any workaround satisfied me. I would a compilation on the fly and use mock-fs in more, I would keep nyc so I will try to help you but to be honest, I didn't understand really that you want. I will try to look your tutorials tomorrow :). I will back to you if I need some info |
@kevincaradant did you ever make any progress on this? |
It seems |
Using Relevant parts of
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Since @Bibliofile's comment, you can simplify it even further with the recently published nyc-config-typescript package.
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript"
} |
|
Hi
I'm a little bit lost with all the libraries between karma, mocha etc
I decided to use Tape.
This is my scripts in the package.json:
My .nyc file:
Can I coverage cleanly using my way with npm run test and npm run coverage ?
Or what I have to do ?
Thank you in advance, sorry if it's trivial.
npm run coverage
comand:This is my output:
The text was updated successfully, but these errors were encountered: