docs: function createConf(sourceFile, loaders) {
  
      var allLoaders = [];
      var testFilesPattern = 'src/**/*.test.js';
  
      if (loaders) {
          allLoaders.concat(loaders);
      }
  
      // Return a new instance each time.
      var conf = {
  
          browsers: ['PhantomJS'],
  
          files: [
              // https://github.com/webpack/style-loader/issues/31
              'node_modules/phantomjs-polyfill/bind-polyfill.js',
  
              testFilesPattern
          ],
  
          frameworks: ['jasmine'],
  
          plugins: [
              karmaWebpackPlugin,
              'karma-jasmine',
              'karma-phantomjs-launcher'
          ],
  
          preprocessors: {},
  
          reporters: [
              'dots'
          ],
  
          webpack: {
              module: {
                  loaders: allLoaders
              },
              resolve: {
                  alias: {}
              }
          },
  
          webpackMiddleware: {
              noInfo: true
          }
  
      };
  
      // Resolve to the correct file for testing.
      conf.webpack.resolve.alias[webpackConfig.library.projectName] =
          path.join(__dirname, sourceFile);
  
      conf.preprocessors[testFilesPattern] = ['webpack'];
  
      return conf;
  }