UNPKG

angular2-devise-token-auth

Version:

Helper library for working with Devise Token Auth in your Angular 2 applications

78 lines (53 loc) 2.59 kB
// Karma configuration module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['jasmine'], files: [ { pattern: 'node_modules/es6-shim/es6-shim.js', included: true, watched: false }, { pattern: 'node_modules/reflect-metadata/Reflect.js', included: true, watched: false }, { pattern: 'node_modules/systemjs/dist/system-polyfills.js', included: true, watched: false }, { pattern: 'node_modules/systemjs/dist/system.src.js', included: true, watched: false }, // // Zone.js dependencies 'node_modules/zone.js/dist/zone.js', 'node_modules/zone.js/dist/jasmine-patch.js', 'node_modules/zone.js/dist/async-test.js', // RxJs. { pattern: 'node_modules/rxjs/**/*.js', included: false, watched: false }, { pattern: 'node_modules/rxjs/**/*.js.map', included: false, watched: false }, {pattern: 'karma-test-shim.js', included: true, watched: true}, // paths loaded via module imports // Angular itself {pattern: 'node_modules/@angular/**/*.js', included: false, watched: true}, {pattern: 'node_modules/@angular/**/*.js.map', included: false, watched: true}, // {pattern: 'node_modules/mock-promises/lib/mock-promises.js', included: false, watched: false}, {pattern: 'dist/**/*.js', included: false, watched: true}, {pattern: 'dist/**/*.js.map', included: false, watched: false} ], // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter reporters: ['mocha'], // web server port port: 9876, // enable / disable colors in the output (reporters and logs) colors: true, // level of logging // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG logLevel: config.LOG_INFO, // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher browsers: ['PhantomJS'], // Continuous Integration mode // if true, Karma captures browsers, runs the tests and exits singleRun: true, // Concurrency level // how many browser should be started simultaneous concurrency: Infinity, }) };