Codeminer42/cm42-central

View on GitHub
config/initializers/cypress_on_rails.rb

Summary

Maintainability
A
0 mins
Test Coverage
if defined?(CypressOnRails)
  CypressOnRails.configure do |c|
    c.cypress_folder = File.expand_path("#{__dir__}/../../spec/cypress")
    # WARNING!! CypressOnRails can execute arbitrary ruby code
    # please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0
    c.use_middleware = Rails.env.test?
    c.logger = Rails.logger
  end
end