{"size": 825, "ext": "js", "max_stars_repo_path": "karma.conf.js", "max_stars_repo_name": "ZempTime/open-wc", "max_stars_repo_stars_event_min_datetime": "2020-03-25T18:58:37.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-25T18:58:37.000Z", "max_issues_repo_path": "karma.conf.js", "max_issues_repo_name": "ZempTime/open-wc", "max_issues_repo_issues_event_min_datetime": "2020-04-12T17:49:24.000Z", "max_issues_repo_issues_event_max_datetime": "2020-05-02T10:11:28.000Z", "max_forks_repo_path": "karma.conf.js", "max_forks_repo_name": "ZempTime/open-wc", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 23.5714285714, "max_line_length": 73, "alphanum_fraction": 0.5818181818}
/* eslint-disable import/no-extraneous-dependencies */
const merge = require('webpack-merge');
const { createDefaultConfig } = require('./packages/testing-karma');

const packagesToTestInBrowser = [
  'dedupe-mixin',
  'lit-helpers',
  'scoped-elements',
  'semantic-dom-diff',
  'testing',
  'testing-helpers',
].join('|');

module.exports = config => {
  config.set(
    merge(createDefaultConfig(config), {
      files: [
        // allows running single tests with the --grep flag 188 tests
        {
          pattern: config.grep
            ? config.grep
            : `packages/*(${packagesToTestInBrowser})/test/**/*.test.js`,
          type: 'module',
        },
      ],

      esm: {
        nodeResolve: true,
        coverageExclude: ['**/testing/import-wrappers/**'],
      },
    }),
  );
  return config;
};
