Last active
January 19, 2016 20:16
-
-
Save keirlawson/ede918f818a49f21dc02 to your computer and use it in GitHub Desktop.
Demonstrating bug in karma-jsdom-launcher 2.0.0
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
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(); | |
}); |
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({ | |
files: ['test.js'], | |
frameworks: ['jasmine'], | |
browsers: ['jsdom'] | |
}); | |
}; |
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": "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" | |
} | |
} |
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('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