How to get around memory error with karma & phantomjs
问题 We're running tests using karma and phantomjs Last week, our tests mysteriously started crashing phantomJS with an error of -1073741819. Based on this thread for Chutzpah it appears that code indicates a native memory failure with PhantomJS. Upon further investigation, we are consistently seeing phantom crash around 750MB of memory. Is there a way to configure Karma so that it does not run up against this limit? Or a way to tell it to flush phantom? We only have around 1200 tests so far. We