Skip to content

Commit 3764d7b

Browse files
Merge pull request rails#49932 from jonathanhefner/action_text-javascript_package_test
Add `JavascriptPackageTest` for Action Text
2 parents e7d0ce9 + a93771c commit 3764d7b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# frozen_string_literal: true
2+
3+
require "test_helper"
4+
5+
class JavascriptPackageTest < ActiveSupport::TestCase
6+
def test_compiled_code_is_in_sync_with_source_code
7+
compiled_files = %w[
8+
app/assets/javascripts/actiontext.js
9+
].map do |file|
10+
Pathname(file).expand_path("#{__dir__}/..")
11+
end
12+
13+
assert_no_changes -> { compiled_files.map(&:read) } do
14+
system "yarn build", exception: true
15+
end
16+
end
17+
end

0 commit comments

Comments
 (0)