Become a member
Sign in
Unit testing node applications with TypeScript — using mocha and chai
1.5K
25
Sudarsan Balaji
Jonathan Samples
Jonathan Samples
Sep 5, 2018 · 1 min read

Thanks for writing! I ran across a helpful detail in the mocha docs: in order to have mocha watch your files and re-run your tests you can pass the --watch or -w but when you use the -r flag to integrate Typescript you’ll also need to pass the --watch-extensions flag as well. Otherwise, --watch does nothing.

    Jonathan Samples

    Written by

    Jonathan Samples

    Write the first response

    Discover Medium

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

    Make Medium yours

    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

    Become a member

    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade
    AboutHelpLegal