Skip to content

pascalpp/karma-console-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-console-test

debugging a logging issue in karma karma-runner/karma#3131

git clone https://github.com/pascalpp/karma-console-test
cd karma-console-test
npm install
karma start

Note that logs outside of test blocks are not sent to terminal.

then

edit ./node_modules/karma/lib/browser.js

and modify the onKarmaError method to be:

onKarmaError (error) {
    if (this.isNotConnected()) {
        this.lastResult.error = true
    }
    this.emitter.emit('browser_error', this, error)
    this.refreshNoActivityTimeout()
}

and rerun karma start. Those console logs still don't appear.

About

debugging a logging issues in karma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published