You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/config/initializers/cypress_rails.rb

15 lines
371 B

return unless Rails.env.test?
Rails.application.load_tasks unless defined?(Rake::Task)
CypressRails.hooks.before_server_start do
Rake::Task["db:seed"].invoke
Seeders::Journey.new.seed
end
CypressRails.hooks.after_transaction_start do
end
CypressRails.hooks.after_state_reset do
end
CypressRails.hooks.before_server_stop do
Rake::Task["db:test:prepare"].invoke
end