function configureBazelConfig(config, conf) {
    // list of karma plugins
    mergeConfigArray(conf, 'plugins', [
      // Loads 'concat_js', 'watcher', 'jasmine', 'requirejs' and 'sourcemap'
      // from @bazel/karma. These packages are used in this config file.
      ...require('@bazel/karma/plugins'),
      // Loads user-installed karma-* packages in the root node_modules.
      // If some of the plugins above are also installed in user project, the
      // user version would override the default.
      'karma-*',
    ]);

    // list of karma preprocessors
    if (!conf.preprocessors) {
      conf.preprocessors = {}
    }
    conf.preprocessors['**/*.js'] = ['sourcemap'];

    // list of test frameworks to use
    overrideConfigValue(conf, 'frameworks', ['jasmine', 'concat_js']);

    // test results reporter to use
    // possible values: 'dots', 'progress'
    // available reporters: https://npmjs.org/browse/keyword/karma-reporter
    mergeConfigArray(conf, 'reporters', ['progress']);

    // enable / disable colors in the output (reporters and logs)
    if (!conf.colors) {
      conf.colors = true;
    }

    // level of logging
    // possible values: config.LOG_DISABLE || config.LOG_ERROR ||
    // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
    conf.logLevel = VERBOSE_LOGS ? config.LOG_DEBUG : config.LOG_INFO;

    // enable / disable watching file and executing tests whenever
    // any file changes
    overrideConfigValue(conf, 'autoWatch', process.env['IBAZEL_NOTIFY_CHANGES'] === 'y');

    // Continuous Integration mode
    // if true, Karma captures browsers, runs the tests and exits
    // note: run_karma.sh may override this as a command-line option.
    overrideConfigValue(conf, 'singleRun', false);

    // Concurrency level
    // how many browser should be started simultaneous
    overrideConfigValue(conf, 'concurrency', Infinity);

    // base path that will be used to resolve all patterns
    // (eg. files, exclude)
    overrideConfigValue(conf, 'basePath', 'TMPL_runfiles_path');

    // Do not show "no timestamp" errors from "karma-requirejs" for proxied file
    // requests. Files which are passed as "static_files" are proxied by default and
    // therefore should not cause such an exception when loaded as expected.
    // See: https://github.com/karma-runner/karma-requirejs/issues/6
    const requireJsShowNoTimestampsError = '^(?!/base/).*$';

    if (conf.client) {
      overrideConfigValue(
          conf.client, 'requireJsShowNoTimestampsError', requireJsShowNoTimestampsError);
    } else {
      conf.client = {requireJsShowNoTimestampsError};
    }
  }
/**
   * Configuration settings for karma under Bazel common to karma_web_test
   * and karma_web_test_suite.
   */
Configuration settings for karma under Bazel common to karma_web_test
and karma_web_test_suite.
Configuration settings for karma under Bazel common to karma_web_test and karma_web_test_suite .
function configureBazelConfig(config, conf) {
    mergeConfigArray(conf, 'plugins', [
      ...require('@bazel/karma/plugins'),
      'karma-*',
    ]);
    if (!conf.preprocessors) {
      conf.preprocessors = {}
    }
    conf.preprocessors['**/*.js'] = ['sourcemap'];
    overrideConfigValue(conf, 'frameworks', ['jasmine', 'concat_js']);
    mergeConfigArray(conf, 'reporters', ['progress']);
    if (!conf.colors) {
      conf.colors = true;
    }
    conf.logLevel = VERBOSE_LOGS ? config.LOG_DEBUG : config.LOG_INFO;
    overrideConfigValue(conf, 'autoWatch', process.env['IBAZEL_NOTIFY_CHANGES'] === 'y');
    overrideConfigValue(conf, 'singleRun', false);
    overrideConfigValue(conf, 'concurrency', Infinity);
    overrideConfigValue(conf, 'basePath', 'TMPL_runfiles_path');
    const requireJsShowNoTimestampsError = '^(?!/base/).*$';
    if (conf.client) {
      overrideConfigValue(
          conf.client, 'requireJsShowNoTimestampsError', requireJsShowNoTimestampsError);
    } else {
      conf.client = {requireJsShowNoTimestampsError};
    }
  }
function configureBazelConfig ( config , conf ) { mergeConfigArray ( conf , 'plugins' , [ ... require ( '@bazel/karma/plugins' ) , 'karma-*' , ] ) ; if ( ! conf . preprocessors ) { conf . preprocessors = { } } conf . preprocessors [ '**/*.js' ] = [ 'sourcemap' ] ; overrideConfigValue ( conf , 'frameworks' , [ 'jasmine' , 'concat_js' ] ) ; mergeConfigArray ( conf , 'reporters' , [ 'progress' ] ) ; if ( ! conf . colors ) { conf . colors = true ; } conf . logLevel = VERBOSE_LOGS ? config . LOG_DEBUG : config . LOG_INFO ; overrideConfigValue ( conf , 'autoWatch' , process . env [ 'IBAZEL_NOTIFY_CHANGES' ] === 'y' ) ; overrideConfigValue ( conf , 'singleRun' , false ) ; overrideConfigValue ( conf , 'concurrency' , Infinity ) ; overrideConfigValue ( conf , 'basePath' , 'TMPL_runfiles_path' ) ; const requireJsShowNoTimestampsError = '^(?!/base/).*$' ; if ( conf . client ) { overrideConfigValue ( conf . client , 'requireJsShowNoTimestampsError' , requireJsShowNoTimestampsError ) ; } else { conf . client = { requireJsShowNoTimestampsError } ; } }
Configuration settings for karma under Bazel common to karma_web_test
 and karma_web_test_suite.
Configuration settings for karma under Bazel common to karma_web_test and karma_web_test_suite .
// list of karma plugins // Loads 'concat_js', 'watcher', 'jasmine', 'requirejs' and 'sourcemap' // from @bazel/karma. These packages are used in this config file. // Loads user-installed karma-* packages in the root node_modules. // If some of the plugins above are also installed in user project, the // user version would override the default. // list of karma preprocessors // list of test frameworks to use // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter // enable / disable colors in the output (reporters and logs) // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || // config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG // enable / disable watching file and executing tests whenever // any file changes // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits // note: run_karma.sh may override this as a command-line option. // Concurrency level // how many browser should be started simultaneous // base path that will be used to resolve all patterns // (eg. files, exclude) // Do not show "no timestamp" errors from "karma-requirejs" for proxied file // requests. Files which are passed as "static_files" are proxied by default and // therefore should not cause such an exception when loaded as expected. // See: https://github.com/karma-runner/karma-requirejs/issues/6