From 6f89db4c24c32b56724453d327f5ca207aae1bce Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 22 Dec 2017 09:11:49 +0800 Subject: [PATCH] Re-enable check for yarn when running qunit:test rake task. --- lib/tasks/qunit.rake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rake index 3c52e5430ab..c97b26d9bc7 100644 --- a/lib/tasks/qunit.rake +++ b/lib/tasks/qunit.rake @@ -13,11 +13,11 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args| abort "Chrome 59 or higher is required to run tests in headless mode." end - # unless system("command -v yarn >/dev/null;") - # abort "Yarn is not installed. Download from https://yarnpkg.com/lang/en/docs/install/" - # end - # - # system("yarn install --dev") + unless system("command -v yarn >/dev/null;") + abort "Yarn is not installed. Download from https://yarnpkg.com/lang/en/docs/install/" + end + + system("yarn install --dev") # ensure we have this port available def port_available?(port)