2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 var path = require('path');
22 var isparta = require('isparta');
24 module.exports = function (config) {
27 browsers: [process.env.JENKINS_HOME ? 'Firefox' : 'Chrome'],
31 autoWatchBatchDelay: 50,
33 frameworks: ['mocha'],
40 'tests.webpack.js': ['webpack', 'sourcemap'],
41 'src/**/*.jsx': ['coverage']
44 reporters: ['progress', 'coverage'],
47 dir: 'dist/coverage/',
50 {type: 'text-summary'}
52 includeAllSources: true,
53 instrumenters: {isparta: isparta},
58 instrumenterOptions: {
67 devtool: 'inline-source-map',
69 root: [path.resolve('.')],
71 i18nJson: 'nfvo-utils/i18n/locale.json',
72 'nfvo-utils/RestAPIUtil.js': 'test-utils/MockRest.js',
73 'nfvo-utils': 'src/nfvo-utils',
74 'nfvo-components': 'src/nfvo-components',
75 'sdc-app': 'src/sdc-app'
80 {test: /\.js$/, exclude: /(src|node_modules)/, loader: 'eslint-loader'},
81 {test: /\.(js|jsx)$/, exclude: /(test|test\.js|node_modules)/, loader: 'isparta'}
84 {test: /\.(js|jsx)$/, exclude: /node_modules/, loader: 'babel-loader'},
85 {test: /\.json$/, loaders: ['json']},
86 {test: /\.(css|scss|png|jpg|svg|ttf|eot|otf|woff|woff2)(\?.*)?$/, loader: 'ignore-loader'},
90 configFile: './.eslintrc',