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

Empty mocha.opts file throws glob exception #1471

Closed
monowerker opened this issue Dec 15, 2014 · 1 comment · Fixed by #1474
Closed

Empty mocha.opts file throws glob exception #1471

monowerker opened this issue Dec 15, 2014 · 1 comment · Fixed by #1474
Labels
type: bug a defect, confirmed by a maintainer

Comments

@monowerker
Copy link
Contributor

.../node_modules/mocha/node_modules/glob/glob.js:120
    throw new Error("must provide pattern")
          ^
Error: must provide pattern
    at new Glob (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/node_modules/glob/glob.js:120:11)
    at glob (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/node_modules/glob/glob.js:57:11)
    at Function.globSync [as sync] (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/node_modules/glob/glob.js:76:10)
    at Object.lookupFiles (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/lib/utils.js:355:20)
    at runAgain (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/bin/_mocha:302:30)
    at Array.forEach (native)
    at Object.<anonymous> (/Users/deric/Dropbox/Projects/mm-api/services/notifications/node_modules/mocha/bin/_mocha:301:6)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3
@boneskull boneskull added the type: bug a defect, confirmed by a maintainer label Dec 15, 2014
@boneskull
Copy link
Contributor

A man goes to the doctor and says, "Doctor, it hurts when I do this." The doctor replies, "Then don't do that." 😄

This is an error, but the error should be caught and reported more nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug a defect, confirmed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants