Skip to content

Instantly share code, notes, and snippets.

@orbitbot
Last active November 9, 2015 21:21
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 orbitbot/c1f297f35300ccd647b9 to your computer and use it in GitHub Desktop.
Save orbitbot/c1f297f35300ccd647b9 to your computer and use it in GitHub Desktop.
karma-electron-launcher require fails example
node_modules
var KarmaServer = require('karma').Server;
new KarmaServer({
browsers: ['Electron'],
colors : true,
files: [
'test.js',
],
frameworks: ['mocha'],
reporters: ['mocha'],
plugins: [
'karma-mocha',
'karma-mocha-reporter',
'karma-electron-launcher'
],
singleRun : true
}).start();
{
"name": "c1f297f35300ccd647b9",
"version": "1.0.0",
"description": "In reference to https://github.com/lele85/karma-electron-launcher/issues/3",
"main": "index.js",
"repository": {
"type": "git",
"url": "git@gist.github.com:c1f297f35300ccd647b9.git"
},
"license": "ISC",
"devDependencies": {
"electron-prebuilt": "^0.34.3",
"karma": "^0.13.15",
"karma-electron-launcher": "0.0.3",
"karma-mocha": "^0.2.0",
"karma-mocha-reporter": "^1.1.1",
"mocha": "^2.3.3"
}
}
describe('Electron browser', function() {
it('should have require', function() {
assert(window.require !== undefined);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment