Description
I was testing the pin_all_from
method and found what might be a potential issue. pin_all_from
requires both the :to
and :under
options to be passed for this test case to pass:
importmap-rails/test/importmap_test.rb
Lines 50 to 53 in 27236e3
This is also apparent by removing the line:
importmap-rails/test/importmap_test.rb
Line 13 in 27236e3
from the setup and noticing that the tests still pass. I also verified it by creating a new Rails 7 app and adding both the lines:
importmap-rails/test/importmap_test.rb
Lines 13 to 14 in 27236e3
to config/importmap.rb
and running bin/importmap json
. Commenting out the second line doesn't generate any imports but commenting out the first line does.