diff --git a/lib/better_html/test_helper/safe_erb/allowed_script_type.rb b/lib/better_html/test_helper/safe_erb/allowed_script_type.rb
index a41249c..b822808 100644
--- a/lib/better_html/test_helper/safe_erb/allowed_script_type.rb
+++ b/lib/better_html/test_helper/safe_erb/allowed_script_type.rb
@@ -6,7 +6,7 @@ module BetterHtml
module TestHelper
module SafeErb
class AllowedScriptType < Base
- VALID_JAVASCRIPT_TAG_TYPES = ["application/ld+json", "text/javascript", "text/template", "text/html"]
+ VALID_JAVASCRIPT_TAG_TYPES = ["application/ld+json", "text/javascript", "text/template", "text/html", "module"]
def validate
script_tags.each do |tag, _|