Skip to content

Instantly share code, notes, and snippets.

@griffinmyers
Created June 26, 2017 23:08
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 griffinmyers/0b98dfef7003b2a7068b9fc3c78b0090 to your computer and use it in GitHub Desktop.
Save griffinmyers/0b98dfef7003b2a7068b9fc3c78b0090 to your computer and use it in GitHub Desktop.
const path = require('path');
const karma = require('karma');
const Server = karma.Server;
const server = new Server({
configFile: path.join(__dirname, 'render-karma.conf.js')
}, process.exit.bind(process));
// Make sure dirPath exists and is clean.
// Left as an exercise for the reader.
//
function cleanDir(dirPath, callback) {}
cleanDir(path.join('/', 'visual-diff', 'results'), function(err) {
if (err) {
console.error(err);
return;
}
server.start();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment