-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Enhancement] Add support of TypeScript (.ts) for test files #2559
Comments
When I evangelize Nightwatch at work this is a common thing that inevitably comes up in the conversation. "Wow! This is great! Can I write the tests in TypeScript instead?" |
Great. Can you explain your solution? Because I have one, but not sure if it is ok. |
If it's only a matter of allowing loading of .ts files, we can do that easily. |
Yes, it's not allowed to use .ts files in NW directly. It would great if you added such an opportunity. |
Hi. Any updates on this issue? |
@trailblazer2006 we will add it soon, thanks for your patience. |
FYI I have made an attempt a while ago: #2064 |
Thanks to everyone. BTW @lloiser my current solution that I use in our projects is exactly the same as yours. I was also thinking about adding some CLI parameter for the extension, like in babel-node, so as not to make breaking changes to Nightwatch. |
Can you guys have a look at this PR and let me know if this is enough? We can get it merged and released in v1.5.2 in a few days. |
Also if y'all could suggest how to add some unit tests and some examples with typescript, that would be appreciated. |
Is your feature request related to a problem? Please describe.
I'm using Nightwatch with TypeScript and Babel to run my end2end, However, Nightwatch doesn't support ".ts" file extensions for test files out of the box. Is it possible to add this feature?
Describe the solution you'd like
Describe how the solution will work
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: