Skip to content

Instantly share code, notes, and snippets.

@ykosbie
Created February 21, 2017 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykosbie/f152faf2c2d9fc6d33c06f43942209a2 to your computer and use it in GitHub Desktop.
Save ykosbie/f152faf2c2d9fc6d33c06f43942209a2 to your computer and use it in GitHub Desktop.
MCVE to demonstrate bug in displaying console.log output in karma
module.exports = function(config) {
config.set({
autoWatch: false,
singleRun: true,
basePath: ".",
frameworks: ["jasmine"],
logLevel: "DEBUG",
browsers: ["PhantomJS"],
reporters: ["progress"],
files: ["test.js"],
client: {
captureConsole: true,
config: {
browserConsoleLogOptions: true
}
}
});
};
{
"name": "ykosbie-mcve-karma-logging",
"version": "1.0.0",
"description": "MCVE to demonstrate bug in displaying console.log output in karma.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "ykosbie",
"license": "MIT",
"dependencies": {
"jasmine-core": "^2.5.2",
"karma-chrome-launcher": "^2.0.0",
"karma": "^1.5.0",
"karma-phantomjs-launcher": "^1.0.2",
"karma-jasmine": "^1.1.0",
"phantomjs": "^2.1.7",
"phantomjs-prebuilt": "^2.1.14"
},
"devDependencies": {}
}
describe("describe", function(){
it("it", function(){
console.log("test");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment