You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically with mocha we have to run mocha -r ts-node/register -- but that wouldnt have the compiler flag.
Would be worthwhile to have the ability to do it which looks like it'd prob just be something like:
// This is the same as ts-node/register except it sets the environment// variable so that it uses the ttypescript compiler. This variable// could just be set in scripts but this convention makes it simpler.process.env.TS_NODE_COMPILER='ttypescript';// eslint-disable-next-line import/no-extraneous-dependenciesrequire('ts-node').register();
The text was updated successfully, but these errors were encountered:
bradennapier
changed the title
How to use with mocha? has to use ts-node/register
How to use with mocha/ts-node/register?
Mar 11, 2020
bradennapier
changed the title
How to use with mocha/ts-node/register?
How to use with mocha & ts-node/register?
Mar 11, 2020
I think the point I was making is that it would be nice to have a ttypescript/register or something similar - most have such an options such as ts-node/register or babel-node/register so that we can do this without having to use the programmatic api (which we could just use transformers at that point ;-)
Hey! Thanks for the work on this.
Wondering how we can use this with mocha? tsconfig-paths has its own
tsconfig-paths/register
to make this workhttps://github.com/dividab/tsconfig-paths#with-mocha-and-ts-node
Basically with mocha we have to run
mocha -r ts-node/register
-- but that wouldnt have the compiler flag.Would be worthwhile to have the ability to do it which looks like it'd prob just be something like:
The text was updated successfully, but these errors were encountered: