lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.31.1 vs lib/sewing_kit/webpack/manifest.rb in sewing_kit-0.31.2
- old
+ new
@@ -64,10 +64,10 @@
end
def instance
mode = ENV['NODE_ENV'] || Rails.env.to_s
- @instance ||= if mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1'
+ @instance ||= if (mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1') || Rails.env.test?
Development.new
else
Production.new
end
end