-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Typescript support #1203
Comments
At the moment, we have no special support for this. I'd be happy to take a look at a PR adding functionality if someone was interested. |
Aleks, |
Hi all ! I don't know if this is the right place to write down this question, but I'm having some problems to run tests writen using Typescript in different classes. Any help on this ? |
Should be "Typescript support" or "Typescript rewrite"? |
@elgalu maybe, but for now, we can create definitions files from jsdoc. With this https://www.npmjs.com/package/typescript-closure-tools In my typescript projects I use tsd to manage my definitions files, includes angular-protractor. The big problem in definition files is that they are part of project independent, although they were always synchronized, even if manually! A tool to generate here a "protractor.d.ts" will be great help for everyone. |
Update here - I think a typescript rewrite is probably a far-future goal, that wouldn't give us a lot of immediate benefit. However - we should absolutely include typescript definition files in our package. That's a high priority. |
And what about a typescript preprocessor to be able to write definitions in typescript instead of ES5 js ? |
It looks like we'll need the following definitions to write protractor tests in typescript: |
Assuming this issue is about support for specs written in typescript - it would be nice with a preprocessor feature like karma offers in conjunction with
plz correct me if I'm on a completely wrong track... |
Something like @pellekrogholt outlined, as a pre-processor for TS would be awesome for anyone interested in using TS with Protractor, for now. Similar to: https://github.com./sergeyt/karma-typescript-preprocessor supporting typings too. |
Some-how I could debug protractor tests from IDE (I use IntelliJ) written in pure js. Any ideas how to debug specs written in ts and converted "on-the-fly" to js? |
Remaining work item: #3169 |
As a side note - we are specifically avoiding having preprocessors for Protractor in the line of the Karma plugins which replicate parts of the build process. You should just point Protractor at your generated |
Closing this issue since remaining work is better captured in #3169 |
To answer the original question: activating ts-node in a protractor.conf.js file with If you use ts-node together with Protractor, make sure you disable Protractor's source-map-support with |
Is there a way to write tests in typescript without compiling it manually before testing? Some kind of typescript preprocessor?
I know it is possible to write tests in coffee, is it possible to do same with typescript?
The text was updated successfully, but these errors were encountered: