1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- var webpackConfig = require('../../webpack.config.js')
- module.exports = function (config) {
- configuration = {
- browsers: [
- //'Chrome'
- 'ChromeHeadless'
- ],
- frameworks: [
- 'mocha',
- 'sinon-chai'
- ],
- reporters: ['spec', 'coverage'],
- files: ['./index.js'],
- preprocessors: {
- './index.js': ['webpack', 'sourcemap']
- },
- webpack: webpackConfig,
- webpackMiddleware: {
- noInfo: true
- },
- coverageReporter: {
- dir: './coverage',
- reporters: [
- { type: 'lcov', subdir: '.' },
- { type: 'text-summary' }
- ]
- },
- customLaunchers: {
- ChromeHeadless: {
- base: 'Chrome',
- flags: [
- '--headless',
- '--disable-gpu',
- // Without a remote debugging port, Google Chrome exits immediately.
- '--remote-debugging-port=9222',
- ]
- }
- }
- }
- config.set(configuration)
- }
|