mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ignore yarn error log file
This commit is contained in:
parent
65bf1c6005
commit
422f00b32f
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