-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
console log not working #2630
Comments
@madroneropaulo this console.log('it doesn't work :( ') is invalid javascript. Try this in your test: console.log('foo'); |
@maksimr Ok that was a random text comment, I have valid text on my specs. Please reopen. I updated the issue. I don't want to create a new one. |
@madroneropaulo can you create a stub project which reproduces this error? Thanks |
@madroneropaulo see #2582 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
I expect to be able to
console.log()
on any spec.Actual behaviour
Logs are printed only within the "describe" scope, but not within blocks beforeEach, it, etc.
Instead, a TypeError is returned "undefined is not a constructor (evaluating 'console.log()'...)"
Environment Details
karma --version
): 1.5.0karma.config.js
file"karma-chrome-launcher": "2.0.0",
"karma-firefox-launcher": "1.0.1",
"karma-jasmine": "1.1.0",
"karma-jenkins-reporter": "0.0.2",
"karma-junit-reporter": "1.2.0",
"karma-phantomjs-launcher": "1.0.2",
"karma-script-launcher": "1.0.0",
"karma-sourcemap-loader": "0.3.7",
"karma-spec-reporter": "0.0.30",
"karma-webpack": "2.0.2",
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: