After generate my app and run it normally, I simulated an error on server/api/user/user.integration.js adding code:
res.body.foo.should.equal('bar');
on line 54.
The test froze and I got the following error:
GET /api/users/me 200 12.153 ms - 102
/home/user/myapp/node_modules/gulp-mocha/index.js:47
stack: err.stack,
^
RangeError: Maximum call stack size exceeded
at Array.join (native)
at Function.Error.prepareStackTrace (/home/user/myapp/node_modules/coffee-script/lib/coffee-script/coffee-script.js:373:46)
at Domain.handleException (/home/user/myapp/node_modules/gulp-mocha/index.js:47:16)
at emitOne (events.js:90:13)
at Domain.emit (events.js:182:7)
at emitError (domain.js:66:24)
at Domain.errorHandler [as _errorHandler] (domain.js:110:18)
at process._fatalException (node.js:234:33)
at Domain.errorHandler [as _errorHandler] (domain.js:137:26)
at process._fatalException (node.js:234:33)
at Domain.errorHandler [as _errorHandler] (domain.js:137:26)
at process._fatalException (node.js:234:33)
...
| Item |
Version |
| OS |
Ubuntu 16.04 |
| generator-angular-fullstack |
3.6.1 |
| node |
5.11.0 |
| npm |
3.8.8 |
| yo |
1.7.0 |
| mocha |
2.4.5 |
| Item |
Answer |
| Transpiler |
Babel |
| Markup |
Jade |
| CSS |
SCSS |
| Router |
ui-router |
| Build Tool |
Gulp |
| Client Tests |
Mocha |
| DB |
MongoDB |
| Auth |
Y |
After generate my app and run it normally, I simulated an error on
server/api/user/user.integration.jsadding code:res.body.foo.should.equal('bar');on line 54.
The test froze and I got the following error: