mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-05-17 04:19:38 +03:00
45 lines
920 B
JavaScript
45 lines
920 B
JavaScript
var webpackConfig = require('../../webpack.config.js')
|
|
|
|
module.exports = (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)
|
|
}
|
|
|