UNPKG

@contasystemer/angularjs-custom-element

Version:

AngularJS custom element module provides functionality to wrap directive/component with custom element.

62 lines (48 loc) 2 kB
process.env.CHROME_BIN = require('puppeteer').executablePath(); module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // plugins to use plugins: [ 'karma-chrome-launcher', 'karma-jasmine', ], // frameworks to use frameworks: ['jasmine'], // start these browsers browsers: ['ChromeHeadless'], // list of files / patterns to load in the browser files: [ 'node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js', 'node_modules/lodash/lodash.js', 'node_modules/angular/angular.js', 'node_modules/@contasystemer/angularjs-assert/src/cs-assert.provider.js', 'src/cs-custom-element.service.js', 'node_modules/angular-mocks/angular-mocks.js', 'spec/cs-custom-element.service.spec.js', ], // list of files / patterns to exclude exclude: [], // preprocess matching files before serving them to the browser preprocessors: {}, // test results reporter to use // possible values: 'dots', 'progress' reporters: ['progress'], // 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: false, // 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 }); }