Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts-node >= 7.x makes mocha unit tests hanging #805

Closed
Q-Man opened this issue Mar 29, 2019 · 3 comments
Closed

ts-node >= 7.x makes mocha unit tests hanging #805

Q-Man opened this issue Mar 29, 2019 · 3 comments

Comments

@Q-Man
Copy link

Q-Man commented Mar 29, 2019

I'm using Mocha Version 6.0.2 in my project with ts-node for writing unit tests in TypeScript.

I'm starting mocha from the command line via:

mocha --require ts-node/register --ui bdd ./src/**/*.test.ts ./src/**/*.test.tsx

With ts-node 6.x I don't have any problems, but all ts-node versions after (7.x and 8.x) make mocha hanging without any output.

Is it possible to get a debug output from Mocha or ts-node to see what's going on?

@hisuwh
Copy link

hisuwh commented Apr 2, 2019

I'm seeing the same thing with alsatian tests with ts-node 8.x but not with 7.0.1

@jbouhier
Copy link

jbouhier commented Apr 24, 2019

Duplicate of #754.

For now --transpile-only with the CLI should help.
See https://github.com/TypeStrong/ts-node#cli-and-programmatic-options.

@cspotcode
Copy link
Collaborator

Closing because each aspect of this ticket is either solved or the necessary work is tracked by other issues:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants