A platform for community discussion. Free, open, simple.
Re-enable check for yarn when running qunit:test rake task.
Guo Xiang Tan6f89db4c24c3
diff --git a/lib/tasks/qunit.rake b/lib/tasks/qunit.rakeindex 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 availabledef port_available?(port)