Why doesn't Webpacker use my test config when I run Rails tests? - rossta.net
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 #rails #rubyonrails #bosnia #programming #tutorials #rubydeveloper #railsdeveloper