Skip to content

Commit

Permalink
Silence log
Browse files Browse the repository at this point in the history
  • Loading branch information
tagliala committed Apr 24, 2023
1 parent e84deb0 commit bacaed9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace :test do
desc %(Starts the test server)
task :server do
puts "Opening test app at #{test_url} ..."
server_command = 'bundle exec ruby test/javascript/server.rb'
server_command = "bundle exec rackup test/javascript/config.ru -q -p #{test_port}"

if ENV['UI']
system server_command
Expand Down
4 changes: 1 addition & 3 deletions test/javascript/run-qunit.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ const puppeteer = require('puppeteer-core');
const page = await browser.newPage()

// Attach to browser console log events, and log to node console
await page.on('console', (...params) => {
for (let i = 0; i < params.length; ++i) { console.log(`${(typeof (params[i]) === 'object') ? params[i]._text : params[i]}`) }
})
await page.on('console', msg => console.log(msg.text()))

var moduleErrors = []
var testErrors = []
Expand Down
2 changes: 2 additions & 0 deletions test/javascript/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
require 'json'
require 'byebug'

disable :logging

class AssetPath < Rack::Static
def call(env)
path = env['PATH_INFO']
Expand Down

0 comments on commit bacaed9

Please sign in to comment.