aboutsummaryrefslogtreecommitdiff
path: root/tools/tasks/karma.start.ts
blob: 313aacd20142a0198664c0c009c7bf773b433434 (plain)
1
2
3
4
5
6
7
8
9
10
11
import * as karma from 'karma';
import {join} from 'path';

export = function karmaStart() {
  return function (done) {
    new (<any>karma).Server({
      configFile: join(process.cwd(), 'karma.conf.js'),
      singleRun: true
    }).start(done);
  };
};