Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command for watching files in mocha #976

Closed
wants to merge 1 commit into from

Conversation

mattcasey
Copy link

Mocha seems to ignore the watch rule unless I add a comma after src, as was given in this example: #266 (comment). I have tested it on my own projects. This documentation saved me a lot of time!

@mattcasey
Copy link
Author

@cspotcode I wanted you to see this since you were asking if anyone had tested the command.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 79.231% when pulling 3e7f811 on mattcasey:readme into e8df418 on TypeStrong:master.

@cspotcode
Copy link
Collaborator

I have a few questions to narrow down what's going on here.

Why does adding the comma work? Is this a mocha bug? Is the comma parsing into an array of strings? If so, is mocha watching the following globs: ["src", ""]? If so, is it possible that passing the empty string is sufficient and we can omit src entirely? For example --watch-files '' or --watch-files=

@mattcasey
Copy link
Author

Closing.. argh sorry, i didn't have time to figure out why the original wasn't working for me.

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

Successfully merging this pull request may close these issues.

None yet

3 participants