mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-05-03 23:02:29 +00:00
39 lines
649 B
JavaScript
39 lines
649 B
JavaScript
|
module.exports = function (config) {
|
||
|
config.set({
|
||
|
basePath: '',
|
||
|
frameworks: ['mocha'],
|
||
|
|
||
|
files: [
|
||
|
'tests/browser.js'
|
||
|
],
|
||
|
|
||
|
preprocessors: {
|
||
|
'tests/*': ['webpack']
|
||
|
},
|
||
|
|
||
|
webpack: {
|
||
|
resolve: {
|
||
|
extensions: ['', '.js']
|
||
|
},
|
||
|
node: {
|
||
|
Buffer: true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
webpackMiddleware: {
|
||
|
noInfo: true,
|
||
|
stats: {
|
||
|
colors: true
|
||
|
}
|
||
|
},
|
||
|
reporters: ['spec'],
|
||
|
port: 9876,
|
||
|
colors: true,
|
||
|
logLevel: config.LOG_INFO,
|
||
|
autoWatch: false,
|
||
|
browsers: process.env.TRAVIS ? ['Firefox'] : ['Chrome'],
|
||
|
captureTimeout: 60000,
|
||
|
singleRun: true
|
||
|
})
|
||
|
}
|