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 #rubydeveloper #rubyonrails #test #webpacker https://rubyonrails.ba/single/why-doesn-t-webpacker-use-my-test-config-when-i-run-rails-tests-rossta-net

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles