function unit(done) {
  parseConfig(
    path.resolve(__dirname, '..', testsDir, 'karma.conf.js'),
    {
      singleRun: !keepalive,
      customConfig: {
        browsers, // We'll massage browser list in `karma.config.js`
        collectCoverage: !debug,
        noPruneSnapshot,
        specs,
        random,
        updateSnapshot,
        useExperimentalFeatures,
        verbose,
      },
    },
    { promiseConfig: true, throwErrors: true }
  ).then(karmaConfig => {
    const server = new Server(karmaConfig, () => {
      done();
    });
    server.start();
  });
}
/**
 * Runs the unit tests
 *
 * @param {Function} done done callback
 */
Runs the unit tests
@param {Function} done done callback
Runs the unit tests @param { Function } done done callback
function unit(done) {
  parseConfig(
    path.resolve(__dirname, '..', testsDir, 'karma.conf.js'),
    {
      singleRun: !keepalive,
      customConfig: {
        browsers, 
        collectCoverage: !debug,
        noPruneSnapshot,
        specs,
        random,
        updateSnapshot,
        useExperimentalFeatures,
        verbose,
      },
    },
    { promiseConfig: true, throwErrors: true }
  ).then(karmaConfig => {
    const server = new Server(karmaConfig, () => {
      done();
    });
    server.start();
  });
}
function unit ( done ) { parseConfig ( path . resolve ( __dirname , '..' , testsDir , 'karma.conf.js' ) , { singleRun : ! keepalive , customConfig : { browsers , collectCoverage : ! debug , noPruneSnapshot , specs , random , updateSnapshot , useExperimentalFeatures , verbose , } , } , { promiseConfig : true , throwErrors : true } ) . then ( karmaConfig => { const server = new Server ( karmaConfig , ( ) => { done ( ) ; } ) ; server . start ( ) ; } ) ; }
Runs the unit tests
 @param {Function} done done callback
Runs the unit tests @param { Function } done done callback
// We'll massage browser list in `karma.config.js`