From 8ab8843f1dfdf7eca999538a6a45fbf7b536b743 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 14 Dec 2022 11:11:51 -0600 Subject: [PATCH] Compile javascript This is needed for the jsbunding-rails support (Propshaft build) now that 1.1.0 is out. This change https://github.com/rails/jsbundling-rails/pull/128 means the build is no longer triggered on db:test:prepare --- tasks/blacklight.rake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/blacklight.rake b/tasks/blacklight.rake index 7e1b39bacb..a1ce6e7eb2 100644 --- a/tasks/blacklight.rake +++ b/tasks/blacklight.rake @@ -44,6 +44,10 @@ end # rubocop:disable Rails/RakeEnvironment desc "Run test suite" task :ci do + within_test_app do + # Precompiles the javascript + system "bin/rake test:prepare" + end with_solr do Rake::Task['blacklight:internal:seed'].invoke Rake::Task['blacklight:coverage'].invoke