Closed liuxh0 closed 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:
--require
flagHope this helps. Thanks for using Jasmine!
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.
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
.