DEV: Remove the transpilation message (#23998)

This commit is contained in:
Jarek Radosz 2023-10-19 01:00:15 +02:00 committed by GitHub
parent bec53210e8
commit 75c9635d8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -310,8 +310,7 @@ task "assets:precompile:compress_js": "environment" do
end
task "assets:precompile:theme_transpiler": "environment" do
path = DiscourseJsProcessor::Transpiler.build_theme_transpiler
puts "Compiled theme-transpiler: #{path}"
DiscourseJsProcessor::Transpiler.build_theme_transpiler
end
# Run these tasks **before** Rails' "assets:precompile" task

View File

@ -8,10 +8,9 @@ RSpec.describe "assets:precompile" do
describe "assets:precompile:theme_transpiler" do
it "compiles the js processor" do
out = capture_stdout { Rake::Task["assets:precompile:theme_transpiler"].invoke }
path = Rake::Task["assets:precompile:theme_transpiler"].actions.first.call
expect(out).to match(%r{Compiled theme-transpiler: tmp/theme-transpiler})
path = out.match(/: (.+)/)[1]
expect(path).to match(%r{tmp/theme-transpiler})
expect(File.exist?(path)).to eq(true)
end
end