code: function karmaEsmFramework(karmaConfig, karmaEmitter) {
    if (!karmaConfig.files.some(file => file.type === 'module')) {
      throw new Error(
        "Did not find any test files with type='module'." +
          "Follow this format: { pattern: config.grep ? config.grep : 'test/**/*.test.js', type: 'module' }",
      );
    }
  
    initialize(karmaConfig, karmaEmitter);
  }
docs: The karma esm framework. Helps the user debug the case where they don't have a
  module test script defined, and boots up the plugin.