Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.