Skip to content

mocha --watch not working with ts-node #266

Description

@sweetim

I am using Typescript and node-ts for the mocha unit testing, but the mocha --watch option is not working with ts-node

Below is the command i pass to run the unit test

mocha -r ts-node/register test/**/**/*.test.ts --watch -R min

The version I am currently using

"mocha": "^3.2.0",
"ts-node": "^1.7.3",
"typescript": "^2.1.5"

It works on the first time, but when I change the file it doesnt run again?

How to fix this problem?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugresearchNeeds design work, investigation, or prototyping. Implementation uncertain.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions