whole_func_string: function karmaEsmPreprocessor(logger) {
    const log = logger.create('preprocessor.esm');
  
    function preprocess(code, file, done) {
      try {
        let compiledCode = esm.compiler.getCached(file.originalPath);
        if (!compiledCode) {
          compiledCode = esm.compiler.compile(file.originalPath, code);
        }
        done(null, compiledCode);
      } catch (e) {
        const message = `\n\n${e.message}\n at ${file.originalPath}\n\n`;
        log.error(message);
        done(null, code);
      }
    }
  
    return preprocess;
  }
func_code_string: function karmaEsmPreprocessor(logger) {
    const log = logger.create('preprocessor.esm');
  
    function preprocess(code, file, done) {
      try {
        let compiledCode = esm.compiler.getCached(file.originalPath);
        if (!compiledCode) {
          compiledCode = esm.compiler.compile(file.originalPath, code);
        }
        done(null, compiledCode);
      } catch (e) {
        const message = `\n\n${e.message}\n at ${file.originalPath}\n\n`;
        log.error(message);
        done(null, code);
      }
    }
  
    return preprocess;
  }
func_documentation_string: Karma preprocessor to handle compiling entry point test files.