diff --git a/spec/jasmine-helper.coffee b/spec/jasmine-helper.coffee index c7afbc6b1..7642de7d7 100644 --- a/spec/jasmine-helper.coffee +++ b/spec/jasmine-helper.coffee @@ -25,7 +25,9 @@ module.exports.runSpecSuite = (specSuite, logFile, logErrors=true) -> log(str) onComplete: (runner) -> fs.closeSync(logStream) if logStream? - require('grim').logDeprecations() if process.env.JANKY_SHA1 + if process.env.JANKY_SHA1 + grim = require 'grim' + grim.logDeprecations() if grim.getDeprecationsLength() > 0 atom.exit(runner.results().failedCount > 0 ? 1 : 0) else AtomReporter = require './atom-reporter'