import * as karma from 'karma'; import {join} from 'path'; export = function karmaStart() { return function (done) { new (karma).Server({ configFile: join(process.cwd(), 'karma.conf.js'), singleRun: true }).start(done); }; };