Skip to content

Instantly share code, notes, and snippets.

@keirlawson
Last active January 19, 2016 20:16
Show Gist options
  • Save keirlawson/ede918f818a49f21dc02 to your computer and use it in GitHub Desktop.
Save keirlawson/ede918f818a49f21dc02 to your computer and use it in GitHub Desktop.
Demonstrating bug in karma-jsdom-launcher 2.0.0
var gulp = require('gulp');
var Server = require('karma').Server;
gulp.task('test', function (done) {
new Server({
configFile: __dirname + '/karma.conf.js',
singleRun: true
}, done).start();
});
module.exports = function(config) {
config.set({
files: ['test.js'],
frameworks: ['jasmine'],
browsers: ['jsdom']
});
};
{
"name": "karmatest",
"version": "1.0.0",
"devDependencies": {
"gulp": "3.9.0",
"jasmine-core": "2.4.1",
"karma": "0.13.9",
"karma-jasmine": "0.3.6",
"karma-jsdom-launcher": "2.0.0"
}
}
describe('a thing', function () {
it('should do something', function () {
expect(true).toBe(true);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment