jasmine / jasmine-npm

A jasmine runner for node projects.
MIT License
378 stars 145 forks source link

Wait until streams are completed before exiting #141

Closed jkytomak closed 6 years ago

jkytomak commented 6 years ago

to prevent output cropping when jasmine is called from another process. Cropping happens in some environments more often than others (might depend on shell). Mostly happens when there is plenty of (error) output in buffer so it's not all flushed before process exit and is lost.

Same problem was in jasmine-node: https://github.com/mhevery/jasmine-node/pull/420

Fix in that and in this PR is based on similar issue in mocha: https://github.com/mochajs/mocha/issues/333