Ts-node: Specifying project when using with Mocha

Created on 15 Aug 2016  路  3Comments  路  Source: TypeStrong/ts-node

The docs suggest usage with Mocha is done like so:

mocha --compilers ts:ts-node/register

What if I want to specify a TypeScript project for the files? I've tried the following to no avail:

mocha --compilers ts:ts-node/register --project server/tsconfig.json
question

All 3 comments

Unfortunately these programs don't enable a way to pass sub-arguments along to ts-node. I would recommend using the environment variables mentioned in the README.

I don't see any documentation on the environment variables in the README?

https://github.com/TypeStrong/ts-node#configuration-options - it's mentioned for each of the options.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoseLion picture JoseLion  路  3Comments

sodiumjoe picture sodiumjoe  路  4Comments

grissius picture grissius  路  3Comments

htonkovac picture htonkovac  路  4Comments

mattdell picture mattdell  路  4Comments