Comments (8)
Any chance you can put together a small test case? I've never used mocha before.
from devtool.
Sure, I created a dummy repo just to show the error.
I tried also with absolute paths but don't work:
$ /usr/local/opt/nvm/v0.10.39/bin/devtool /usr/local/opt/nvm/v0.10.39/bin/mocha
from devtool.
For some reasons is unable to find the init.js file
from devtool.
I just ran your test through devtool and it seemed to work fine for me. Here's the command I ran from your repo:
devtool ./node_modules/mocha/bin/_mocha -qc -- ./test/dummy-spec.js
(Note: Mocha seems to quit the process when all tests finish!)
That is a strange error, maybe it got corrupted during install? You can re-install globally like so:
npm install devtool -g
Also which platform are you on? npm version? I'm also not sure if node version matters but I've been testing on node@5
.
from devtool.
Ok, so doing
devtool ./node_modules/mocha/bin/_mocha
Works for me! My problem was that I was trying to run it like
devtool ./node_modules/mocha/bin/mocha
and $ devtool ./node_modules/.bin/mocha
which is basically the same.
I tried reinstalling devtool globally again and using node@5 but still fails using my approach... So maybe is this something expected and simply I didn't know how to use it properly? or it's a bug of the mocha cli?
Thanks very much for the help
from devtool.
Sadly the mocha
script spawns a new process which means we can't easily debug it, which is why _mocha
is used instead. More discussion: s-a/iron-node#51
from devtool.
I see, i will close the issue now since there's nothing wrong with Devtool ^^
Thanks for the info 💪
from devtool.
Added this to the readme under Grunt/Gulp/Mocha
section. 😄
from devtool.
Related Issues (20)
- Module version mismatch. Expected 50, got 51. HOT 5
- Fails on save when using mongoose 4.x with sub-documents
- Require hook for ts-node doesn't work HOT 3
- V8 flag `--expose-gc` causes whole config to silently fail
- Reload console on file change with --watch
- Windows 10: File /npm/node_modules/devtool/index.html not found HOT 1
- Add flag to disable process.exit() HOT 1
- impossible to inspect http requests
- Devtool Chrome debugger cannot find prototype closure functions
- Ignore files when using --watch HOT 5
- Devtools doesn't work with dynamic link libraries
- REPL :: On windows (10) i can't require modules from current working directory HOT 1
- Can you add docs on how to use this with jest? HOT 1
- Support more flags in devtoolrc
- install error HOT 1
- add support async/await HOT 3
- please update new electron version
- Unable to install
- devtool with expressjs, how to find script files?
- devtool/bin/spawn replacement in Node/DevTool? Looking for advice ... HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devtool.