Skip to content

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

@Q-Man

Description

@Q-Man

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions