Why doesn't Webpacker use my test config when I run Rails tests? - rossta.net
23-Jul-2020 1448
When running Rails system or integration tests, you might be surprised to learn that Webpacker will load your development webpack config. Here's something you might not expect: when running Rails tests, Webpacker will load the development webpack config instead of the test config by default.To demonstrate, I'll use some "puts" debugging. Here's a console.log statement in the development config.
Why doesn't Webpacker use my test config when I run Rails tests? - rossta.net #ruby #rubydeveloper #rubyonrails #doesn't #Webpacker #config #Rails #tests? #rossta.net #test #webpacker https://rubyonrails.ba/link/why-doesn-t-webpacker-use-my-test-config-when-i-run-rails-tests-rossta-net