Created
June 26, 2017 23:08
-
-
Save griffinmyers/0b98dfef7003b2a7068b9fc3c78b0090 to your computer and use it in GitHub Desktop.
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
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