Guest User

Untitled

a guest
Apr 4th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Karma configuration
  2. // Generated on Fri Mar 31 2017 13:29:09 GMT+0200 (Środkowoeuropejski czas letni)
  3.  
  4. module.exports = function(config) {
  5.   config.set({
  6.  
  7.     // base path that will be used to resolve all patterns (eg. files, exclude)
  8.     basePath: '',
  9.  
  10.  
  11.     // frameworks to use
  12.     // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
  13.     frameworks: ['jasmine'],
  14.  
  15.  
  16.     // list of files / patterns to load in the browser
  17.     files: [
  18.       'src/**/*.spec.ts',
  19.       'src/**/*.spec.js'
  20.     ],
  21.  
  22.  
  23.     // list of files to exclude
  24.     exclude: [
  25.     ],
  26.  
  27.  
  28.     // preprocess matching files before serving them to the browser
  29.     // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
  30.     preprocessors: {
  31.       'src/**/*.spec.ts': ['babel'],
  32.       'src/**/*.spec.js': ['babel']
  33.     },
  34.    
  35.    
  36.     babelPreprocessor: {
  37.       options: {
  38.         "presets": ["es2015"],
  39.         "plugins": ["transform-es2015-modules-umd"]
  40.       }
  41.     },
  42.  
  43.  
  44.     // test results reporter to use
  45.     // possible values: 'dots', 'progress'
  46.     // available reporters: https://npmjs.org/browse/keyword/karma-reporter
  47.     reporters: ['progress'],
  48.  
  49.  
  50.     // web server port
  51.     port: 9876,
  52.  
  53.  
  54.     // enable / disable colors in the output (reporters and logs)
  55.     colors: true,
  56.  
  57.  
  58.     // level of logging
  59.     // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
  60.     logLevel: config.LOG_INFO,
  61.  
  62.  
  63.     // enable / disable watching file and executing tests whenever any file changes
  64.     autoWatch: true,
  65.  
  66.  
  67.     // start these browsers
  68.     // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
  69.     browsers: ['PhantomJS'],
  70.  
  71.  
  72.     // Continuous Integration mode
  73.     // if true, Karma captures browsers, runs the tests and exits
  74.     singleRun: true,
  75.  
  76.     // Concurrency level
  77.     // how many browser should be started simultaneous
  78.     concurrency: Infinity
  79.   })
  80. }
Add Comment
Please, Sign In to add comment