fuel-ui/karma.config.js
Vitaly Kramskikh faa6d71c09 Enable linting for node.js files and split .eslintrc
This commit enables linting for node.js files (gulpfile and
helpers, webpack and karma configs) and also splits .eslintrc
into 2 files. This is needed because our node.js files don't
support ES6 syntax, so nailgun/.eslintrc now contains common
linting rules and nailgun/static/.eslintrc contains JSX
and ES6-specific rules.

Implements: blueprint converge-to-eslint-config-openstack

Change-Id: I1956f2022475b39724dfb49f98bdc8e6e5d898e9
2016-01-17 18:01:55 +03:00

51 lines
934 B
JavaScript

/*eslint-disable strict*/
module.exports = function(config) {
config.set({
browsers: ['firefox'],
files: [
'static/tests/unit/**/*.js'
],
frameworks: [
'chai',
'mocha',
'sinon'
],
plugins: [
'karma-webdriver-launcher',
'karma-chai',
'karma-mocha',
'karma-sinon',
'karma-webpack'
],
preprocessors: {
'static/tests/unit/**/*.js': ['webpack']
},
reporters: ['dots'],
singleRun: true,
client: {
mocha: {
ui: 'tdd'
}
},
customLaunchers: {
chrome: {
base: 'WebDriver',
browserName: 'chrome'
},
firefox: {
base: 'WebDriver',
browserName: 'firefox'
},
phantomjs: {
base: 'WebDriver',
browserName: 'phantomjs'
}
},
webpack: require('./webpack.config'),
webpackMiddleware: {
noInfo: true
}
});
};