You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly, if you look at the issue I opened, it is only the combination of nyc mocha that causes the issue, so I'm not sure which side the issue is on. mocha only preserves the error code as does nyc node.
@mlrawlings ahh apologies on the dupe! i wasnt able to find it when i was searching. thats an interesting thing about it being specific to mocha though.
seems like if running only mocha with the failing test produces the correct error code, i wouldnt expect the issue to be on mocha's side... maybe? 😕
Expected Behavior
nyc
will forward the exit code resulting from tests that run out of memory.Observed Behavior
If
nyc
is used on a test which fails due to JS running out of memory,nyc
seems to swallow the error and report exit code = 0Forensic Information
To reproduce:
node_modules/.bin/mocha test.js
echo $?
(notice that the exit code is134
)node_modules/.bin/nyc node_modules/.bin/mocha test.js
echo $?
(notice that the exit code is0
)I'm using
[email protected]
and[email protected]
with node v8.9.3Operating System: MacOSX 10.12.6
The text was updated successfully, but these errors were encountered: