Skip to content

Commit

Permalink
Merge pull request #49932 from jonathanhefner/action_text-javascript_…
Browse files Browse the repository at this point in the history
…package_test

Add `JavascriptPackageTest` for Action Text

(cherry picked from commit 3764d7b)
  • Loading branch information
jonathanhefner committed Nov 6, 2023
1 parent bb9a6f0 commit fc5c617
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions actiontext/test/javascript_package_test.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fc5c617

Please sign in to comment.