Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8358815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T10:55:30+00:00 2026-06-09T10:55:30+00:00

I am trying to rerun mocha tests using supervisor. I have tried: supervisor node_modules\.bin\mocha

  • 0

I am trying to rerun mocha tests using supervisor. I have tried:

supervisor node_modules\.bin\mocha

It goes into loop with error:

basedir=`dirname "$0"`

Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T10:55:31+00:00Added an answer on June 9, 2026 at 10:55 am

    I think all you want to do is mocha -w:

    -w, --watch                     watch files for changes
    

    It works nicely with the dot-matrix reporter (default) and -G to give you growl notifications when your tests fail.

    Edit:

    I’ve found the Windows-related issues you mention: "No such module" error when trying to get Mocha to watch my project

    I can’t help with that, either.

    But back to the supervisor question: When I install mocha, the “bin” script is in node_modules/mocha/bin, and I can get tests to run repeatedly with the following

    supervisor node_modules/mocha/bin/mocha 
    

    supervisor does print some annoying DEBUG lines between each test run, but those can be silenced with --quiet. Because mocha quits after each run, you have a busy loop of constant tests, though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to compile netcat.c on AIX for some time (using the
I have been trying to make clang 2.9 output an AST with graphviz using
Trying to copy the msdn refernce here doesn't work and gives an error I
trying to figure out why this is happening - I have an input text
I'm trying out the whole TDD and I'm running into a problems with validate
I am using Delphi 2010 with Tim Anderson's SQLite wrapper (unicode version) Have a
I am trying to debug a large application build using Qt/C++ and valgrind is
I am currently trying to learn how to use easymock. I have the following
I'm trying to write a simple task using Maven: <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions> <execution>
I have an ASP.NET MVC 3 Web Application using Linq-to-SQL for my data access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.