Created
February 21, 2017 21:27
-
-
Save ykosbie/f152faf2c2d9fc6d33c06f43942209a2 to your computer and use it in GitHub Desktop.
MCVE to demonstrate bug in displaying console.log output in karma
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} | |
} | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": {} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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