Skip compressing theme test files (#13619)

Skip compressing theme test files (#13619)

diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index 85debe8..534e055 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -281,6 +281,8 @@ task 'assets:precompile' => 'assets:precompile:before' do
           max_compress = max_compress?(info["logical_path"], locales)
           if File.exists?(_path)
             STDERR.puts "Skipping: #{file} already compressed"
+          elsif file.include? "discourse/tests"
+            STDERR.puts "Skipping: #{file}"
           else
             proc.call do
               start = Process.clock_gettime(Process::CLOCK_MONOTONIC)

GitHub sha: 02999f5eb2b30503ad8d1a17cb2fe95956fce3be

This commit appears in #13619 which was approved by OsamaSayegh. It was merged by pmusaraj.