-
Notifications
You must be signed in to change notification settings - Fork 16
[Docs] What is the practical difference of using @ava/typescript? Should I expect automagic source mapping? #19
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
Comments
You can run specific test files based on their source location, rather than the build output: npx ava test/test.ts Which is quite nice if you have multiple test files. #12 will let AVA compile your sources before running tests. With regards to source maps, it's probably best to install (I'm closing this issue for housekeeping purposes, but let's keep the conversation going.) |
Thanks for the fast response, sorry to take long to reply. What you said clarified it to me. Also thank you very much for the tip on source maps! Is this documented somewhere? |
This was helpful and probably worthy of adding to the README.md :) |
Note: I have phrased this issue mostly as a question, but please look at it as a request for documentation improvement - I looked around but didn't find anything on this.
My @papb/zip module is written in TypeScript and I currently test it with ava, but without
@ava/typescript
.Today I tried to configure
@ava/typescript
on it. However, although it works, I could not see any practical difference. I thought perhaps source mapping would work automagically, but I still get outputs based on the compiled file.For example, adding a simple failing test as follows:
Still yields:
Note the presence of
ava_1.default
.This was the only thing I was expecting to change. If this still works as before, what is the practical advantage of starting to use
@ava/typescript
?The text was updated successfully, but these errors were encountered: