jasmine / jasmine-npm

A jasmine runner for node projects.
MIT License
378 stars 145 forks source link

Will Jasmine add support for TypeScript? #135

Closed liuxh0 closed 6 years ago

liuxh0 commented 6 years ago

I really love Jasmine over Mocha. But Mocha has a better TS support.

It would be great if Jasmine also adds support for TypeScript, just like in Mocha: mocha --require ts-node/register.

slackersoft commented 6 years ago

You should be able to accomplish this right now by specifying a helperFile that does that require for you. The docs have an example but it isn't very discoverable for the general case. This obviously isn't quite as nice as a --require command line option.

I would be happy to review a pull requests to:

Hope this helps. Thanks for using Jasmine!

liuxh0 commented 6 years ago

Thanks. Doing require('ts-node/register') in a helper file solves the problem.

I will try my best to make a PR for --require flag.