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
I seem to be confused about what this option does. My tests (written in typescript and executed via mocha with --require ts-node/register) run just as fast with or without typeChecking (~23 seconds after clearing the cache) and catch simple type errors I've tried introducing, regardless of whether I use the typeCheck option or not.
I've tried enabling / disabling it both via the require entrypoints (ts-node/register vs ts-node/register/typeCheck) and via the environment variable (TS_NODE_TYPE_CHECK) and haven't been able to detect any difference in behavior.
Could you add some documentation on what the typeCheck option actually does and how to decide whether to enable it or not? Thanks!
Okay, this is really weird. When I was clearing the cache between runs, ts-node/register and ts-node/register/typecheck both took 23 seconds. But if instead I set TS_NODE_CACHE=NO, then ts-node/register/typecheck only takes 9 seconds, while ts-node/register still takes 23 seconds (which is the opposite of what I would expect!).
Activity
mikelehen commentedon Jan 16, 2018
Okay, this is really weird. When I was clearing the cache between runs, ts-node/register and ts-node/register/typecheck both took 23 seconds. But if instead I set TS_NODE_CACHE=NO, then ts-node/register/typecheck only takes 9 seconds, while ts-node/register still takes 23 seconds (which is the opposite of what I would expect!).
My package.json has:
And here are my timings:
nextlogic-ono commentedon Feb 11, 2018
It seems current version 4.1.0 released on npm still has old options in the help.
blakeembrey commentedon Feb 19, 2018
Added with #536.