test/configuration_test.rb in webpacker-5.1.1 vs test/configuration_test.rb in webpacker-5.2.0

- old
+ new

@@ -14,11 +14,11 @@ assert_equal source_path, @config.source_path.to_s end def test_source_path_globbed assert_equal @config.source_path_globbed, - "app/javascript/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg}" + "app/javascript/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg,.elm}" end def test_source_entry_path source_entry_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/app/javascript", "packs").to_s assert_equal @config.source_entry_path.to_s, source_entry_path @@ -51,17 +51,18 @@ def test_cache_path cache_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/tmp/cache/webpacker").to_s assert_equal @config.cache_path.to_s, cache_path end - def test_resolved_paths - assert_equal @config.resolved_paths, ["app/assets", "/etc/yarn"] + def test_additional_paths + assert_equal @config.additional_paths, ["app/assets", "/etc/yarn", "app/elm"] end - def test_resolved_paths_globbed - assert_equal @config.resolved_paths_globbed, [ - "app/assets/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg}", - "/etc/yarn/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg}" + def test_additional_paths_globbed + assert_equal @config.additional_paths_globbed, [ + "app/assets/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg,.elm}", + "/etc/yarn/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg,.elm}", + "app/elm/**/*{.mjs,.js,.sass,.scss,.css,.module.sass,.module.scss,.module.css,.png,.svg,.gif,.jpeg,.jpg,.elm}" ] end def test_extensions config_path = File.expand_path File.join(File.dirname(__FILE__), "test_app/config/webpacker.yml").to_s