Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ class Analytics
end

if !ENV['CI']
config.before(:all, js: true) do
puts 'Bundling JavaScript...'
system 'make public/packs/manifest.json'
config.before(js: true) do
# rubocop:disable Style/GlobalVars
next if defined?($ran_asset_build)
$ran_asset_build = true
# rubocop:enable Style/GlobalVars
puts 'Bundling JavaScript and stylesheets...'
system 'WEBPACK_PORT= yarn build'
system 'yarn build:css'
end
end

Expand Down