Add JavascriptPackageTest for Action Text

This mirrors the existing `JavascriptPackageTest` tests for UJS, Action
Cable, and Active Storage.
This commit is contained in:
Jonathan Hefner 2023-11-05 12:11:51 -06:00
parent e7d0ce9045
commit a93771cb0d

@ -0,0 +1,17 @@
# frozen_string_literal: true
require "test_helper"
class JavascriptPackageTest < ActiveSupport::TestCase
def test_compiled_code_is_in_sync_with_source_code
compiled_files = %w[
app/assets/javascripts/actiontext.js
].map do |file|
Pathname(file).expand_path("#{__dir__}/..")
end
assert_no_changes -> { compiled_files.map(&:read) } do
system "yarn build", exception: true
end
end
end