mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #27891 from y-yagi/ignore_yarn_error_log
Ignore yarn error log file
This commit is contained in:
commit
7ca367238d
2 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
|||
|
||||
<% unless options[:skip_yarn] -%>
|
||||
/vendor/node_modules
|
||||
/vendor/yarn-error.log
|
||||
|
||||
<% end -%>
|
||||
.byebug_history
|
||||
|
|
|
@ -508,6 +508,11 @@ class AppGeneratorTest < Rails::Generators::TestCase
|
|||
assert_file "config/initializers/assets.rb" do |content|
|
||||
assert_no_match(/node_modules/, content)
|
||||
end
|
||||
|
||||
assert_file ".gitignore" do |content|
|
||||
assert_no_match(/vendor\/node_modules/, content)
|
||||
assert_no_match(/vendor\/yarn-error\.log/, content)
|
||||
end
|
||||
end
|
||||
|
||||
def test_inclusion_of_jbuilder
|
||||
|
|
Loading…
Reference in a new issue