mocha -w indefinitely creates new lines on Windows #629

Closed
casey-chow opened this Issue Oct 29, 2012 · 5 comments

Projects

None yet

5 participants

@casey-chow

When I run mocha -w on my Windows machine (Win7 Home Premium x64, node v0.8.14), the "Watching" spinner that appears on 'nix systems just keeps adding more lines to the terminal:

Endless Loading

@tj
Contributor
tj commented Oct 29, 2012

damn, windows doesn't like carriage returns i take it? we may have to use one of the ansi escape sequences instead

@jcollum
jcollum commented Feb 14, 2013

Hey can you pull this in? I just updated a project with npm update and lost my patch to fix this.

@tj tj closed this Feb 19, 2013
@valtido
valtido commented Aug 4, 2014

I think, this bug has crept up again for me :( (at least) on windows.

Anyone else getting this?

@valtido
valtido commented Aug 4, 2014

I narrowed it down, that the prob is with coffeescript. I am runing,

#CLI command
npm test

#package.json
...
scripts :{
  "test": "npm build && mocha --watch",
}
...

#mocha.opts (file)
--require should
--reporter list
--ui bdd
--require coffee-script/register                 ##OFFENDERS
--compilers coffee:coffee-script/register  ##OFFENDERS
--bare
--reporter list
--recursive ./test
--require test/test_helper.coffee
--colors
@boneskull
Member

@valtido May want to file a bug in coffee-script...

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