Poltergeist can help to detect JavaScript errors on the page with very simple configuration. You just need to add an option to detect JS errors in the ‘env.rb’ file. We have already added that in out config.